src/snac/data/MaintenanceEvent.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"] != "MaintenanceEvent")
            return false;
        parent::fromArray($data);
        if (isset($data["eventType"]) && $data["eventType"] != null)
            $this->eventType = new \snac\data\Term($data["eventType"]);
        else
            $this->eventType = null;
        if (isset($data["eventDateTime"]))
            $this->eventDateTime = $data["eventDateTime"];
        else
            $this->eventDateTime = null;
        if (isset($data["standardDateTime"]))
            $this->standardDateTime = $data["standardDateTime"];
        else
            $this->standardDateTime = null;
        if (isset($data["agent"]))
            $this->agent = $data["agent"];
        else
            $this->agent = null;
        if (isset($data["agentType"]) && $data["agentType"] != null)
            $this->agentType = new \snac\data\Term($data["agentType"]);
        else
            $this->agentType = null;
        if (isset($data["eventDescription"]))
            $this->eventDescription = $data["eventDescription"];
        else
            $this->eventDescription = null;
        return true;
    }
public function fromArray ( $ data ) { if ( ! isset ( $ data [ " dataType " ] ) || $ data [ " dataType " ] != " MaintenanceEvent " ) return false ; parent :: fromArray ( $ data ) ; if ( isset ( $ data [ " eventType " ] ) && $ data [ " eventType " ] != null ) $ this -> eventType = new \ snac \ data \ Term ( $ data [ " eventType " ] ) ; else $ this -> eventType = null ; if ( isset ( $ data [ " eventDateTime " ] ) ) $ this -> eventDateTime = $ data [ " eventDateTime " ] ; else $ this -> eventDateTime = null ; if ( isset ( $ data [ " standardDateTime " ] ) ) $ this -> standardDateTime = $ data [ " standardDateTime " ] ; else $ this -> standardDateTime = null ; if ( isset ( $ data [ " agent " ] ) ) $ this -> agent = $ data [ " agent " ] ; else $ this -> agent = null ; if ( isset ( $ data [ " agentType " ] ) && $ data [ " agentType " ] != null ) $ this -> agentType = new \ snac \ data \ Term ( $ data [ " agentType " ] ) ; else $ this -> agentType = null ; if ( isset ( $ data [ " eventDescription " ] ) ) $ this -> eventDescription = $ data [ " eventDescription " ] ; else $ this -> eventDescription = 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