src/snac/data/GeoTerm.php
/**
     * Replaces this object's data with the given associative array
     *
     * @param string[][] $data This objects data in array form
     * @return boolean true on success, false on failure
     */
Replaces this object's data with the given associative array
@param string[][] $data This objects data in array form
@return boolean true on success, false on failure
Replaces this object ' s data with the given associative array @param string [] [] $data This objects data in array form @return boolean true on success false on failure
public function fromArray($data) {
        if (isset($data["latitude"]))
            $this->latitude = $data["latitude"];
        else
            $this->latitude = null;
        if (isset($data["longitude"]))
            $this->longitude = $data["longitude"];
        else
            $this->longitude = null;
        if (isset($data["administrationCode"]))
            $this->administrationCode = $data["administrationCode"];
        else
            $this->administrationCode = null;
        if (isset($data["countryCode"]))
            $this->countryCode = $data["countryCode"];
        else
            $this->countryCode = null;
        if (isset($data["name"]))
            $this->name = $data["name"];
        else
            $this->name = null;
        if (isset($data["id"]))
            $this->id = $data["id"];
        else
            $this->id = null;
        if (isset($data["uri"]))
            $this->uri = $data["uri"];
        else
            $this->uri = null;
        return true;
    }
public function fromArray ( $ data ) { if ( isset ( $ data [ " latitude " ] ) ) $ this -> latitude = $ data [ " latitude " ] ; else $ this -> latitude = null ; if ( isset ( $ data [ " longitude " ] ) ) $ this -> longitude = $ data [ " longitude " ] ; else $ this -> longitude = null ; if ( isset ( $ data [ " administrationCode " ] ) ) $ this -> administrationCode = $ data [ " administrationCode " ] ; else $ this -> administrationCode = null ; if ( isset ( $ data [ " countryCode " ] ) ) $ this -> countryCode = $ data [ " countryCode " ] ; else $ this -> countryCode = null ; if ( isset ( $ data [ " name " ] ) ) $ this -> name = $ data [ " name " ] ; else $ this -> name = null ; if ( isset ( $ data [ " id " ] ) ) $ this -> id = $ data [ " id " ] ; else $ this -> id = null ; if ( isset ( $ data [ " uri " ] ) ) $ this -> uri = $ data [ " uri " ] ; else $ this -> uri = null ; return true ; }
Replaces this object's data with the given associative array
 @param string[][] $data This objects data in array form
 @return boolean true on success, false on failure
Replaces this object ' s data with the given associative array @param string [] [] $data This objects data in array form @return boolean true on success false on failure