_propDict)) { if (is_a($this->_propDict["dateTime"], "\DateTime") || is_null($this->_propDict["dateTime"])) { return $this->_propDict["dateTime"]; } else { $this->_propDict["dateTime"] = new \DateTime($this->_propDict["dateTime"]); return $this->_propDict["dateTime"]; } } return null; } /** * Sets the dateTime * * @param \DateTime $val The dateTime * * @return MessageEvent */ public function setDateTime($val) { $this->_propDict["dateTime"] = $val; return $this; } /** * Gets the description * * @return string|null The description */ public function getDescription() { if (array_key_exists("description", $this->_propDict)) { return $this->_propDict["description"]; } else { return null; } } /** * Sets the description * * @param string $val The description * * @return MessageEvent */ public function setDescription($val) { $this->_propDict["description"] = $val; return $this; } /** * Gets the eventType * * @return MessageEventType|null The eventType */ public function getEventType() { if (array_key_exists("eventType", $this->_propDict)) { if (is_a($this->_propDict["eventType"], "\Beta\Microsoft\Graph\Model\MessageEventType") || is_null($this->_propDict["eventType"])) { return $this->_propDict["eventType"]; } else { $this->_propDict["eventType"] = new MessageEventType($this->_propDict["eventType"]); return $this->_propDict["eventType"]; } } return null; } /** * Sets the eventType * * @param MessageEventType $val The eventType * * @return MessageEvent */ public function setEventType($val) { $this->_propDict["eventType"] = $val; return $this; } }