src/snac/data/SNACControlMetadata.php
/**
     * Required method to import an array into this data object
     *
     * @param string[][] $data The data for this object in an associative array
     */
Required method to import an array into this data object
@param string[][] $data The data for this object in an associative array
Required method to import an array into this data object @param string [] [] $data The data for this object in an associative array
public function fromArray($data) {
        if (!isset($data["dataType"]) || $data["dataType"] != "SNACControlMetadata")
            return false;
        parent::fromArray($data);
        unset ($this->snacControlMetadata);
        if (isset($data["language"]) && $data["language"] != null)
            $this->language = new Language($data["language"]);
        else
            $this->language = null;
        if (isset($data["citation"]) && $data["citation"] != null)
            $this->citation = new Source($data["citation"]);
        else
            $this->citation = null;
        if (isset($data["descriptiveRule"]) && $data["descriptiveRule"] != null)
            $this->descriptiveRule = new Term($data["descriptiveRule"]);
        else
            $this->descriptiveRule = null;
        if (isset($data["note"]))
            $this->note = $data["note"];
        else
            $this->note = null;
        if (isset($data["subCitation"]))
            $this->subCitation = $data["subCitation"];
        else
            $this->subCitation = null;
        if (isset($data["sourceData"]))
            $this->sourceData = $data["sourceData"];
        else
            $this->sourceData = null;
        return true;
    }
public function fromArray ( $ data ) { if ( ! isset ( $ data [ " dataType " ] ) || $ data [ " dataType " ] != " SNACControlMetadata " ) return false ; parent :: fromArray ( $ data ) ; unset ( $ this -> snacControlMetadata ) ; if ( isset ( $ data [ " language " ] ) && $ data [ " language " ] != null ) $ this -> language = new Language ( $ data [ " language " ] ) ; else $ this -> language = null ; if ( isset ( $ data [ " citation " ] ) && $ data [ " citation " ] != null ) $ this -> citation = new Source ( $ data [ " citation " ] ) ; else $ this -> citation = null ; if ( isset ( $ data [ " descriptiveRule " ] ) && $ data [ " descriptiveRule " ] != null ) $ this -> descriptiveRule = new Term ( $ data [ " descriptiveRule " ] ) ; else $ this -> descriptiveRule = null ; if ( isset ( $ data [ " note " ] ) ) $ this -> note = $ data [ " note " ] ; else $ this -> note = null ; if ( isset ( $ data [ " subCitation " ] ) ) $ this -> subCitation = $ data [ " subCitation " ] ; else $ this -> subCitation = null ; if ( isset ( $ data [ " sourceData " ] ) ) $ this -> sourceData = $ data [ " sourceData " ] ; else $ this -> sourceData = null ; return true ; }
Required method to import an array into this data object
 @param string[][] $data The data for this object in an associative array
Required method to import an array into this data object @param string [] [] $data The data for this object in an associative array
// Metadata should never have metadata