_propDict)) { if (is_a($this->_propDict["createdBy"], "\Microsoft\Graph\Model\EmailIdentity") || is_null($this->_propDict["createdBy"])) { return $this->_propDict["createdBy"]; } else { $this->_propDict["createdBy"] = new EmailIdentity($this->_propDict["createdBy"]); return $this->_propDict["createdBy"]; } } return null; } /** * Sets the createdBy * Identity of the user who created the notification. * * @param EmailIdentity $val The createdBy * * @return EndUserNotification */ public function setCreatedBy($val) { $this->_propDict["createdBy"] = $val; return $this; } /** * Gets the createdDateTime * Date and time when the notification was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. * * @return \DateTime|null The createdDateTime */ public function getCreatedDateTime() { if (array_key_exists("createdDateTime", $this->_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 * Date and time when the notification was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. * * @param \DateTime $val The createdDateTime * * @return EndUserNotification */ public function setCreatedDateTime($val) { $this->_propDict["createdDateTime"] = $val; return $this; } /** * Gets the description * Description of the notification as defined by the user. * * @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 * Description of the notification as defined by the user. * * @param string $val The description * * @return EndUserNotification */ public function setDescription($val) { $this->_propDict["description"] = $val; return $this; } /** * Gets the displayName * Name of the notification as defined by the user. * * @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 * Name of the notification as defined by the user. * * @param string $val The displayName * * @return EndUserNotification */ public function setDisplayName($val) { $this->_propDict["displayName"] = $val; return $this; } /** * Gets the lastModifiedBy * Identity of the user who last modified the notification. * * @return EmailIdentity|null The lastModifiedBy */ public function getLastModifiedBy() { if (array_key_exists("lastModifiedBy", $this->_propDict)) { if (is_a($this->_propDict["lastModifiedBy"], "\Microsoft\Graph\Model\EmailIdentity") || is_null($this->_propDict["lastModifiedBy"])) { return $this->_propDict["lastModifiedBy"]; } else { $this->_propDict["lastModifiedBy"] = new EmailIdentity($this->_propDict["lastModifiedBy"]); return $this->_propDict["lastModifiedBy"]; } } return null; } /** * Sets the lastModifiedBy * Identity of the user who last modified the notification. * * @param EmailIdentity $val The lastModifiedBy * * @return EndUserNotification */ public function setLastModifiedBy($val) { $this->_propDict["lastModifiedBy"] = $val; return $this; } /** * Gets the lastModifiedDateTime * Date and time when the notification was last modified. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. * * @return \DateTime|null The lastModifiedDateTime */ public function getLastModifiedDateTime() { if (array_key_exists("lastModifiedDateTime", $this->_propDict)) { if (is_a($this->_propDict["lastModifiedDateTime"], "\DateTime") || is_null($this->_propDict["lastModifiedDateTime"])) { return $this->_propDict["lastModifiedDateTime"]; } else { $this->_propDict["lastModifiedDateTime"] = new \DateTime($this->_propDict["lastModifiedDateTime"]); return $this->_propDict["lastModifiedDateTime"]; } } return null; } /** * Sets the lastModifiedDateTime * Date and time when the notification was last modified. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. * * @param \DateTime $val The lastModifiedDateTime * * @return EndUserNotification */ public function setLastModifiedDateTime($val) { $this->_propDict["lastModifiedDateTime"] = $val; return $this; } /** * Gets the notificationType * Type of notification. Possible values are: unknown, positiveReinforcement, noTraining, trainingAssignment, trainingReminder, unknownFutureValue. * * @return EndUserNotificationType|null The notificationType */ public function getNotificationType() { if (array_key_exists("notificationType", $this->_propDict)) { if (is_a($this->_propDict["notificationType"], "\Microsoft\Graph\Model\EndUserNotificationType") || is_null($this->_propDict["notificationType"])) { return $this->_propDict["notificationType"]; } else { $this->_propDict["notificationType"] = new EndUserNotificationType($this->_propDict["notificationType"]); return $this->_propDict["notificationType"]; } } return null; } /** * Sets the notificationType * Type of notification. Possible values are: unknown, positiveReinforcement, noTraining, trainingAssignment, trainingReminder, unknownFutureValue. * * @param EndUserNotificationType $val The notificationType * * @return EndUserNotification */ public function setNotificationType($val) { $this->_propDict["notificationType"] = $val; return $this; } /** * Gets the source * The source of the content. Possible values are: unknown, global, tenant, unknownFutureValue. * * @return SimulationContentSource|null The source */ public function getSource() { if (array_key_exists("source", $this->_propDict)) { if (is_a($this->_propDict["source"], "\Microsoft\Graph\Model\SimulationContentSource") || is_null($this->_propDict["source"])) { return $this->_propDict["source"]; } else { $this->_propDict["source"] = new SimulationContentSource($this->_propDict["source"]); return $this->_propDict["source"]; } } return null; } /** * Sets the source * The source of the content. Possible values are: unknown, global, tenant, unknownFutureValue. * * @param SimulationContentSource $val The source * * @return EndUserNotification */ public function setSource($val) { $this->_propDict["source"] = $val; return $this; } /** * Gets the status * The status of the notification. Possible values are: unknown, draft, ready, archive, delete, unknownFutureValue. * * @return SimulationContentStatus|null The status */ public function getStatus() { if (array_key_exists("status", $this->_propDict)) { if (is_a($this->_propDict["status"], "\Microsoft\Graph\Model\SimulationContentStatus") || is_null($this->_propDict["status"])) { return $this->_propDict["status"]; } else { $this->_propDict["status"] = new SimulationContentStatus($this->_propDict["status"]); return $this->_propDict["status"]; } } return null; } /** * Sets the status * The status of the notification. Possible values are: unknown, draft, ready, archive, delete, unknownFutureValue. * * @param SimulationContentStatus $val The status * * @return EndUserNotification */ public function setStatus($val) { $this->_propDict["status"] = $val; return $this; } /** * Gets the supportedLocales * Supported locales for endUserNotification content. * * @return array|null The supportedLocales */ public function getSupportedLocales() { if (array_key_exists("supportedLocales", $this->_propDict)) { return $this->_propDict["supportedLocales"]; } else { return null; } } /** * Sets the supportedLocales * Supported locales for endUserNotification content. * * @param string[] $val The supportedLocales * * @return EndUserNotification */ public function setSupportedLocales($val) { $this->_propDict["supportedLocales"] = $val; return $this; } /** * Gets the details * * @return array|null The details */ public function getDetails() { if (array_key_exists("details", $this->_propDict)) { return $this->_propDict["details"]; } else { return null; } } /** * Sets the details * * @param EndUserNotificationDetail[] $val The details * * @return EndUserNotification */ public function setDetails($val) { $this->_propDict["details"] = $val; return $this; } }