src/snac/data/APIKey.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"] != $this->dataType)
            return false;
        parent::fromArray($data);
        if (isset($data["expires"]))
            $this->expires = $data["expires"];
        if (isset($data["generated"]))
            $this->generated = $data["generated"];
        if (isset($data["label"]))
            $this->label = $data["label"];
        if (isset($data["key"]))
            $this->keyString = $data["key"];
    }
public function fromArray ( $ data ) { if ( ! isset ( $ data [ " dataType " ] ) || $ data [ " dataType " ] != $ this -> dataType ) return false ; parent :: fromArray ( $ data ) ; if ( isset ( $ data [ " expires " ] ) ) $ this -> expires = $ data [ " expires " ] ; if ( isset ( $ data [ " generated " ] ) ) $ this -> generated = $ data [ " generated " ] ; if ( isset ( $ data [ " label " ] ) ) $ this -> label = $ data [ " label " ] ; if ( isset ( $ data [ " key " ] ) ) $ this -> keyString = $ data [ " key " ] ; }
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