_propDict)) { if (is_a($this->_propDict["createdDateTime"], "\DateTime") || is_null($this->_propDict["createdDateTime"])) { return $this->_propDict["createdDateTime"]; } else { $this->_propDict["createdDateTime"] = new \DateTime($this->_propDict["createdDateTime"]); return $this->_propDict["createdDateTime"]; } } return null; } /** * Sets the createdDateTime * The start time of the operation. * * @param \DateTime $val The createdDateTime * * @return Operation */ public function setCreatedDateTime($val) { $this->_propDict["createdDateTime"] = $val; return $this; } /** * Gets the lastActionDateTime * The time of the last action of the operation. * * @return \DateTime|null The lastActionDateTime */ public function getLastActionDateTime() { if (array_key_exists("lastActionDateTime", $this->_propDict)) { if (is_a($this->_propDict["lastActionDateTime"], "\DateTime") || is_null($this->_propDict["lastActionDateTime"])) { return $this->_propDict["lastActionDateTime"]; } else { $this->_propDict["lastActionDateTime"] = new \DateTime($this->_propDict["lastActionDateTime"]); return $this->_propDict["lastActionDateTime"]; } } return null; } /** * Sets the lastActionDateTime * The time of the last action of the operation. * * @param \DateTime $val The lastActionDateTime * * @return Operation */ public function setLastActionDateTime($val) { $this->_propDict["lastActionDateTime"] = $val; return $this; } /** * Gets the status * The current status of the operation: notStarted, running, completed, failed * * @return OperationStatus|null The status */ public function getStatus() { if (array_key_exists("status", $this->_propDict)) { if (is_a($this->_propDict["status"], "\Microsoft\Graph\Model\OperationStatus") || is_null($this->_propDict["status"])) { return $this->_propDict["status"]; } else { $this->_propDict["status"] = new OperationStatus($this->_propDict["status"]); return $this->_propDict["status"]; } } return null; } /** * Sets the status * The current status of the operation: notStarted, running, completed, failed * * @param OperationStatus $val The status * * @return Operation */ public function setStatus($val) { $this->_propDict["status"] = $val; return $this; } }