src/snac/data/ConstellationRelation.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["dataType"]) || $data["dataType"] != "ConstellationRelation")
            return false;
        parent::fromArray($data);
        if (isset($data["sourceConstellation"]) && $data["sourceConstellation"] != null)
            $this->sourceConstellation = $data["sourceConstellation"];
        else
            $this->sourceConstellation = null;
        if (isset($data["targetConstellation"]) && $data["targetConstellation"] != null)
            $this->targetConstellation = $data["targetConstellation"];
        else
            $this->targetConstellation = null;
        if (isset($data["sourceArkID"]) && $data["sourceArkID"] != null)
            $this->sourceArkID = $data["sourceArkID"];
        else
            $this->sourceArkID = null;
        if (isset($data["targetArkID"]) && $data["targetArkID"] != null)
            $this->targetArkID = $data["targetArkID"];
        else
            $this->targetArkID = null;
        if (isset($data["targetEntityType"]) && $data["targetEntityType"] != null)
            $this->targetEntityType = new \snac\data\Term($data["targetEntityType"]);
        else
            $this->targetEntityType = null;
        if (isset($data["type"]) && $data["type"] != null)
            $this->type = new \snac\data\Term($data["type"]);
        else
            $this->type = null;
        if (isset($data["altType"]) && $data["altType"] != null)
            $this->altType = new \snac\data\Term($data["altType"]);
        else
            $this->altType = null;
        if (isset($data["cpfRelationType"]) && $data["cpfRelationType"] != null)
            $this->cpfRelationType = new \snac\data\Term($data["cpfRelationType"]);
        else
            $this->cpfRelationType = null;
        if (isset($data["content"]))
            $this->content = $data["content"];
        else
            $this->content = null;
        if (isset($data["note"]))
            $this->note = $data["note"];
        else
            $this->note = null;
        return true;
    }
public function fromArray ( $ data ) { if ( ! isset ( $ data [ " dataType " ] ) || $ data [ " dataType " ] != " ConstellationRelation " ) return false ; parent :: fromArray ( $ data ) ; if ( isset ( $ data [ " sourceConstellation " ] ) && $ data [ " sourceConstellation " ] != null ) $ this -> sourceConstellation = $ data [ " sourceConstellation " ] ; else $ this -> sourceConstellation = null ; if ( isset ( $ data [ " targetConstellation " ] ) && $ data [ " targetConstellation " ] != null ) $ this -> targetConstellation = $ data [ " targetConstellation " ] ; else $ this -> targetConstellation = null ; if ( isset ( $ data [ " sourceArkID " ] ) && $ data [ " sourceArkID " ] != null ) $ this -> sourceArkID = $ data [ " sourceArkID " ] ; else $ this -> sourceArkID = null ; if ( isset ( $ data [ " targetArkID " ] ) && $ data [ " targetArkID " ] != null ) $ this -> targetArkID = $ data [ " targetArkID " ] ; else $ this -> targetArkID = null ; if ( isset ( $ data [ " targetEntityType " ] ) && $ data [ " targetEntityType " ] != null ) $ this -> targetEntityType = new \ snac \ data \ Term ( $ data [ " targetEntityType " ] ) ; else $ this -> targetEntityType = null ; if ( isset ( $ data [ " type " ] ) && $ data [ " type " ] != null ) $ this -> type = new \ snac \ data \ Term ( $ data [ " type " ] ) ; else $ this -> type = null ; if ( isset ( $ data [ " altType " ] ) && $ data [ " altType " ] != null ) $ this -> altType = new \ snac \ data \ Term ( $ data [ " altType " ] ) ; else $ this -> altType = null ; if ( isset ( $ data [ " cpfRelationType " ] ) && $ data [ " cpfRelationType " ] != null ) $ this -> cpfRelationType = new \ snac \ data \ Term ( $ data [ " cpfRelationType " ] ) ; else $ this -> cpfRelationType = null ; if ( isset ( $ data [ " content " ] ) ) $ this -> content = $ data [ " content " ] ; else $ this -> content = null ; if ( isset ( $ data [ " note " ] ) ) $ this -> note = $ data [ " note " ] ; else $ this -> note = 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