src/snac/data/Image.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) {
        if (!isset($data["dataType"]) || $data["dataType"] != "Image")
            return false;
        parent::fromArray($data);
        unset($this->author);
        if (isset($data["author"]))
            $this->author = $data["author"];
        else
            $this->author = null;
        unset($this->authorURL);
        if (isset($data["authorURL"]))
            $this->authorURL = $data["authorURL"];
        else
            $this->authorURL = null;
        unset($this->license);
        if (isset($data["license"]))
            $this->license = $data["license"];
        else
            $this->license = null;
        unset($this->licenseURL);
        if (isset($data["licenseURL"]))
            $this->licenseURL = $data["licenseURL"];
        else
            $this->licenseURL = null;
        unset($this->info);
        if (isset($data["info"]))
            $this->info = $data["info"];
        else
            $this->info = null;
        unset($this->infoURL);
        if (isset($data["infoURL"]))
            $this->infoURL = $data["infoURL"];
        else
            $this->infoURL = null;
        unset($this->url);
        if (isset($data["url"]))
            $this->url = $data["url"];
        else
            $this->url = null;
    }
public function fromArray ( $ data ) { if ( ! isset ( $ data [ " dataType " ] ) || $ data [ " dataType " ] != " Image " ) return false ; parent :: fromArray ( $ data ) ; unset ( $ this -> author ) ; if ( isset ( $ data [ " author " ] ) ) $ this -> author = $ data [ " author " ] ; else $ this -> author = null ; unset ( $ this -> authorURL ) ; if ( isset ( $ data [ " authorURL " ] ) ) $ this -> authorURL = $ data [ " authorURL " ] ; else $ this -> authorURL = null ; unset ( $ this -> license ) ; if ( isset ( $ data [ " license " ] ) ) $ this -> license = $ data [ " license " ] ; else $ this -> license = null ; unset ( $ this -> licenseURL ) ; if ( isset ( $ data [ " licenseURL " ] ) ) $ this -> licenseURL = $ data [ " licenseURL " ] ; else $ this -> licenseURL = null ; unset ( $ this -> info ) ; if ( isset ( $ data [ " info " ] ) ) $ this -> info = $ data [ " info " ] ; else $ this -> info = null ; unset ( $ this -> infoURL ) ; if ( isset ( $ data [ " infoURL " ] ) ) $ this -> infoURL = $ data [ " infoURL " ] ; else $ this -> infoURL = null ; unset ( $ this -> url ) ; if ( isset ( $ data [ " url " ] ) ) $ this -> url = $ data [ " url " ] ; else $ this -> url = 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