_propDict)) { if (is_a($this->_propDict["endDateTime"], "\DateTime") || is_null($this->_propDict["endDateTime"])) { return $this->_propDict["endDateTime"]; } else { $this->_propDict["endDateTime"] = new \DateTime($this->_propDict["endDateTime"]); return $this->_propDict["endDateTime"]; } } return null; } /** * Sets the endDateTime * * @param \DateTime $val The endDateTime * * @return PrivilegedAccessScheduleInstance */ public function setEndDateTime($val) { $this->_propDict["endDateTime"] = $val; return $this; } /** * Gets the startDateTime * * @return \DateTime|null The startDateTime */ public function getStartDateTime() { if (array_key_exists("startDateTime", $this->_propDict)) { if (is_a($this->_propDict["startDateTime"], "\DateTime") || is_null($this->_propDict["startDateTime"])) { return $this->_propDict["startDateTime"]; } else { $this->_propDict["startDateTime"] = new \DateTime($this->_propDict["startDateTime"]); return $this->_propDict["startDateTime"]; } } return null; } /** * Sets the startDateTime * * @param \DateTime $val The startDateTime * * @return PrivilegedAccessScheduleInstance */ public function setStartDateTime($val) { $this->_propDict["startDateTime"] = $val; return $this; } }