ruạṛ
<?php /** * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. * * LocalizedNotificationMessage File * PHP version 7 * * @category Library * @package Microsoft.Graph * @copyright (c) Microsoft Corporation. All rights reserved. * @license https://opensource.org/licenses/MIT MIT License * @link https://graph.microsoft.com */ namespace Microsoft\Graph\Model; /** * LocalizedNotificationMessage class * * @category Model * @package Microsoft.Graph * @copyright (c) Microsoft Corporation. All rights reserved. * @license https://opensource.org/licenses/MIT MIT License * @link https://graph.microsoft.com */ class LocalizedNotificationMessage extends Entity { /** * Gets the isDefault * Flag to indicate whether or not this is the default locale for language fallback. This flag can only be set. To unset, set this property to true on another Localized Notification Message. * * @return bool|null The isDefault */ public function getIsDefault() { if (array_key_exists("isDefault", $this->_propDict)) { return $this->_propDict["isDefault"]; } else { return null; } } /** * Sets the isDefault * Flag to indicate whether or not this is the default locale for language fallback. This flag can only be set. To unset, set this property to true on another Localized Notification Message. * * @param bool $val The isDefault * * @return LocalizedNotificationMessage */ public function setIsDefault($val) { $this->_propDict["isDefault"] = boolval($val); return $this; } /** * Gets the lastModifiedDateTime * DateTime the object was last modified. * * @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 * DateTime the object was last modified. * * @param \DateTime $val The lastModifiedDateTime * * @return LocalizedNotificationMessage */ public function setLastModifiedDateTime($val) { $this->_propDict["lastModifiedDateTime"] = $val; return $this; } /** * Gets the locale * The Locale for which this message is destined. * * @return string|null The locale */ public function getLocale() { if (array_key_exists("locale", $this->_propDict)) { return $this->_propDict["locale"]; } else { return null; } } /** * Sets the locale * The Locale for which this message is destined. * * @param string $val The locale * * @return LocalizedNotificationMessage */ public function setLocale($val) { $this->_propDict["locale"] = $val; return $this; } /** * Gets the messageTemplate * The Message Template content. * * @return string|null The messageTemplate */ public function getMessageTemplate() { if (array_key_exists("messageTemplate", $this->_propDict)) { return $this->_propDict["messageTemplate"]; } else { return null; } } /** * Sets the messageTemplate * The Message Template content. * * @param string $val The messageTemplate * * @return LocalizedNotificationMessage */ public function setMessageTemplate($val) { $this->_propDict["messageTemplate"] = $val; return $this; } /** * Gets the subject * The Message Template Subject. * * @return string|null The subject */ public function getSubject() { if (array_key_exists("subject", $this->_propDict)) { return $this->_propDict["subject"]; } else { return null; } } /** * Sets the subject * The Message Template Subject. * * @param string $val The subject * * @return LocalizedNotificationMessage */ public function setSubject($val) { $this->_propDict["subject"] = $val; return $this; } }
cải xoăn