_propDict)) { if (is_a($this->_propDict["deliveryStatus"], "\Beta\Microsoft\Graph\Model\MessageStatus") || is_null($this->_propDict["deliveryStatus"])) { return $this->_propDict["deliveryStatus"]; } else { $this->_propDict["deliveryStatus"] = new MessageStatus($this->_propDict["deliveryStatus"]); return $this->_propDict["deliveryStatus"]; } } return null; } /** * Sets the deliveryStatus * * @param MessageStatus $val The deliveryStatus * * @return MessageRecipient */ public function setDeliveryStatus($val) { $this->_propDict["deliveryStatus"] = $val; return $this; } /** * Gets the recipientEmail * * @return string|null The recipientEmail */ public function getRecipientEmail() { if (array_key_exists("recipientEmail", $this->_propDict)) { return $this->_propDict["recipientEmail"]; } else { return null; } } /** * Sets the recipientEmail * * @param string $val The recipientEmail * * @return MessageRecipient */ public function setRecipientEmail($val) { $this->_propDict["recipientEmail"] = $val; return $this; } /** * Gets the events * * @return array|null The events */ public function getEvents() { if (array_key_exists("events", $this->_propDict)) { return $this->_propDict["events"]; } else { return null; } } /** * Sets the events * * @param MessageEvent[] $val The events * * @return MessageRecipient */ public function setEvents($val) { $this->_propDict["events"] = $val; return $this; } }