src/snac/data/Term.php
/**
     * Required method to import an array into this term structure
     *
     * @param string[][] $data The data for this object in an associative array
     */
Required method to import an array into this term structure
@param string[][] $data The data for this object in an associative array
Required method to import an array into this term structure @param string [] [] $data The data for this object in an associative array
public function fromArray($data) {
        unset($this->id);
        if (isset($data["id"]))
            $this->id = $data["id"];
        else
            $this->id = null;
        unset($this->term);
        if (isset($data["term"]))
            $this->term = $data["term"];
        else
            $this->term = null;
        unset($this->uri);
        if (isset($data["uri"]))
            $this->uri = $data["uri"];
        else
            $this->uri = null;
        unset($this->type);
        if (isset($data["type"]))
            $this->type = $data["type"];
        else
            $this->type = null;
        unset($this->description);
        if (isset($data["description"]))
            $this->description = $data["description"];
        else
            $this->description = null;
    }
public function fromArray ( $ data ) { unset ( $ this -> id ) ; if ( isset ( $ data [ " id " ] ) ) $ this -> id = $ data [ " id " ] ; else $ this -> id = null ; unset ( $ this -> term ) ; if ( isset ( $ data [ " term " ] ) ) $ this -> term = $ data [ " term " ] ; else $ this -> term = null ; unset ( $ this -> uri ) ; if ( isset ( $ data [ " uri " ] ) ) $ this -> uri = $ data [ " uri " ] ; else $ this -> uri = null ; unset ( $ this -> type ) ; if ( isset ( $ data [ " type " ] ) ) $ this -> type = $ data [ " type " ] ; else $ this -> type = null ; unset ( $ this -> description ) ; if ( isset ( $ data [ " description " ] ) ) $ this -> description = $ data [ " description " ] ; else $ this -> description = null ; }
Required method to import an array into this term structure
 @param string[][] $data The data for this object in an associative array
Required method to import an array into this term structure @param string [] [] $data The data for this object in an associative array