src/snac/data/AbstractOrderedComponent.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"] != $this->dataType)
            return false;
        parent::fromArray($data);
        if (isset($data["text"]))
            $this->text = $data["text"];
        else
            $this->text = null;
        if (isset($data["order"]))
            $this->order = $data["order"];
        else
            $this->order = null;
        if (isset($data["type"]) && $data["type"] != null)
            $this->type = new Term($data["type"]);
        else
            $this->type = null;
        return true;
    }
public function fromArray ( $ data ) { if ( ! isset ( $ data [ " dataType " ] ) || $ data [ " dataType " ] != $ this -> dataType ) return false ; parent :: fromArray ( $ data ) ; if ( isset ( $ data [ " text " ] ) ) $ this -> text = $ data [ " text " ] ; else $ this -> text = null ; if ( isset ( $ data [ " order " ] ) ) $ this -> order = $ data [ " order " ] ; else $ this -> order = null ; if ( isset ( $ data [ " type " ] ) && $ data [ " type " ] != null ) $ this -> type = new Term ( $ data [ " type " ] ) ; else $ this -> type = 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