_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 DateTimeOffset when the operation was created. Read-only. * * @param \DateTime $val The createdDateTime * * @return PrintOperation */ public function setCreatedDateTime($val) { $this->_propDict["createdDateTime"] = $val; return $this; } /** * Gets the status * The status of the operation. Read-only. * * @return PrintOperationStatus|null The status */ public function getStatus() { if (array_key_exists("status", $this->_propDict)) { if (is_a($this->_propDict["status"], "\Microsoft\Graph\Model\PrintOperationStatus") || is_null($this->_propDict["status"])) { return $this->_propDict["status"]; } else { $this->_propDict["status"] = new PrintOperationStatus($this->_propDict["status"]); return $this->_propDict["status"]; } } return null; } /** * Sets the status * The status of the operation. Read-only. * * @param PrintOperationStatus $val The status * * @return PrintOperation */ public function setStatus($val) { $this->_propDict["status"] = $val; return $this; } }