_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 Timestamp type represents creation date and time of the location using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. * * @param \DateTime $val The createdDateTime * * @return NamedLocation */ public function setCreatedDateTime($val) { $this->_propDict["createdDateTime"] = $val; return $this; } /** * Gets the displayName * Human-readable name of the location. * * @return string|null The displayName */ public function getDisplayName() { if (array_key_exists("displayName", $this->_propDict)) { return $this->_propDict["displayName"]; } else { return null; } } /** * Sets the displayName * Human-readable name of the location. * * @param string $val The displayName * * @return NamedLocation */ public function setDisplayName($val) { $this->_propDict["displayName"] = $val; return $this; } /** * Gets the modifiedDateTime * The Timestamp type represents last modified date and time of the location using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. * * @return \DateTime|null The modifiedDateTime */ public function getModifiedDateTime() { if (array_key_exists("modifiedDateTime", $this->_propDict)) { if (is_a($this->_propDict["modifiedDateTime"], "\DateTime") || is_null($this->_propDict["modifiedDateTime"])) { return $this->_propDict["modifiedDateTime"]; } else { $this->_propDict["modifiedDateTime"] = new \DateTime($this->_propDict["modifiedDateTime"]); return $this->_propDict["modifiedDateTime"]; } } return null; } /** * Sets the modifiedDateTime * The Timestamp type represents last modified date and time of the location using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. * * @param \DateTime $val The modifiedDateTime * * @return NamedLocation */ public function setModifiedDateTime($val) { $this->_propDict["modifiedDateTime"] = $val; return $this; } }