setODataType("#microsoft.graph.messageUnpinnedEventMessageDetail"); } /** * Gets the eventDateTime * Date and time when the event occurred. * * @return \DateTime|null The eventDateTime */ public function getEventDateTime() { if (array_key_exists("eventDateTime", $this->_propDict)) { if (is_a($this->_propDict["eventDateTime"], "\DateTime") || is_null($this->_propDict["eventDateTime"])) { return $this->_propDict["eventDateTime"]; } else { $this->_propDict["eventDateTime"] = new \DateTime($this->_propDict["eventDateTime"]); return $this->_propDict["eventDateTime"]; } } return null; } /** * Sets the eventDateTime * Date and time when the event occurred. * * @param \DateTime $val The value to assign to the eventDateTime * * @return MessageUnpinnedEventMessageDetail The MessageUnpinnedEventMessageDetail */ public function setEventDateTime($val) { $this->_propDict["eventDateTime"] = $val; return $this; } /** * Gets the initiator * Initiator of the event. * * @return IdentitySet|null The initiator */ public function getInitiator() { if (array_key_exists("initiator", $this->_propDict)) { if (is_a($this->_propDict["initiator"], "\Microsoft\Graph\Model\IdentitySet") || is_null($this->_propDict["initiator"])) { return $this->_propDict["initiator"]; } else { $this->_propDict["initiator"] = new IdentitySet($this->_propDict["initiator"]); return $this->_propDict["initiator"]; } } return null; } /** * Sets the initiator * Initiator of the event. * * @param IdentitySet $val The value to assign to the initiator * * @return MessageUnpinnedEventMessageDetail The MessageUnpinnedEventMessageDetail */ public function setInitiator($val) { $this->_propDict["initiator"] = $val; return $this; } }