var/classes/DataObject/EwsNotification.php line 402

Open in your IDE?
  1. <?php
  2. /**
  3.  * Inheritance: no
  4.  * Variants: no
  5.  *
  6.  * Fields Summary:
  7.  * - notifyAdmit [checkbox]
  8.  * - alertAction [manyToManyObjectRelation]
  9.  * - alertType [manyToOneRelation]
  10.  * - alertStatus [manyToOneRelation]
  11.  * - weatherPhenomenon [manyToOneRelation]
  12.  * - alertHazard [manyToManyObjectRelation]
  13.  * - region [manyToOneRelation]
  14.  * - governorate [manyToManyObjectRelation]
  15.  * - mapGovernorate [manyToManyObjectRelation]
  16.  * - ewsOtherLocations [manyToManyObjectRelation]
  17.  * - municipality [manyToManyObjectRelation]
  18.  * - center [manyToManyObjectRelation]
  19.  * - district [manyToManyObjectRelation]
  20.  * - otherLocations [manyToManyObjectRelation]
  21.  * - user [manyToOneRelation]
  22.  * - editor [manyToOneRelation]
  23.  * - coordinates [textarea]
  24.  * - addressComponents [fieldcollections]
  25.  * - startDate [datetime]
  26.  * - endDate [datetime]
  27.  * - alertEndDate [datetime]
  28.  * - localizedfields [localizedfields]
  29.  * -- message [textarea]
  30.  * -- xPost [textarea]
  31.  * -- ewsSearchId [input]
  32.  * -- otherLocation [input]
  33.  * - attachment [manyToOneRelation]
  34.  * - enableTwitterNotification [checkbox]
  35.  * - enableSMSNotification [checkbox]
  36.  * - enableEmailNotification [checkbox]
  37.  * - previewText [checkbox]
  38.  * - status [select]
  39.  * - guid [input]
  40.  * - twitterId [input]
  41.  * - twitterLog [textarea]
  42.  * - isEmailSent [checkbox]
  43.  * - xAttachment [manyToOneRelation]
  44.  * - polygon [manyToOneRelation]
  45.  * - isPolygon [checkbox]
  46.  * - notificationType [select]
  47.  * - polygonXAtachment [manyToOneRelation]
  48.  * - userGroup [manyToManyObjectRelation]
  49.  * - xHistoryAtachment [manyToOneRelation]
  50.  * - endXAttachment [manyToOneRelation]
  51.  * - alertPage [input]
  52.  * - isManned [checkbox]
  53.  * - isSent [checkbox]
  54.  * - alertId [input]
  55.  * - tweetID [input]
  56.  * - title [input]
  57.  * - alertStatusCategory [manyToOneRelation]
  58.  * - lastModifiedDate [datetime]
  59.  * - rawText [textarea]
  60.  * - hash [textarea]
  61.  */
  62. namespace Pimcore\Model\DataObject;
  63. use Pimcore\Model\DataObject\Exception\InheritanceParentNotFoundException;
  64. use Pimcore\Model\DataObject\PreGetValueHookInterface;
  65. /**
  66. * @method static \Pimcore\Model\DataObject\EwsNotification\Listing getList(array $config = [])
  67. * @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByNotifyAdmit($value, $limit = 0, $offset = 0, $objectTypes = null)
  68. * @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByAlertAction($value, $limit = 0, $offset = 0, $objectTypes = null)
  69. * @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByAlertType($value, $limit = 0, $offset = 0, $objectTypes = null)
  70. * @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByAlertStatus($value, $limit = 0, $offset = 0, $objectTypes = null)
  71. * @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByWeatherPhenomenon($value, $limit = 0, $offset = 0, $objectTypes = null)
  72. * @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByAlertHazard($value, $limit = 0, $offset = 0, $objectTypes = null)
  73. * @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByRegion($value, $limit = 0, $offset = 0, $objectTypes = null)
  74. * @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByGovernorate($value, $limit = 0, $offset = 0, $objectTypes = null)
  75. * @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByMapGovernorate($value, $limit = 0, $offset = 0, $objectTypes = null)
  76. * @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByEwsOtherLocations($value, $limit = 0, $offset = 0, $objectTypes = null)
  77. * @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByMunicipality($value, $limit = 0, $offset = 0, $objectTypes = null)
  78. * @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByCenter($value, $limit = 0, $offset = 0, $objectTypes = null)
  79. * @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByDistrict($value, $limit = 0, $offset = 0, $objectTypes = null)
  80. * @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByOtherLocations($value, $limit = 0, $offset = 0, $objectTypes = null)
  81. * @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByUser($value, $limit = 0, $offset = 0, $objectTypes = null)
  82. * @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByEditor($value, $limit = 0, $offset = 0, $objectTypes = null)
  83. * @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByCoordinates($value, $limit = 0, $offset = 0, $objectTypes = null)
  84. * @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByStartDate($value, $limit = 0, $offset = 0, $objectTypes = null)
  85. * @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByEndDate($value, $limit = 0, $offset = 0, $objectTypes = null)
  86. * @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByAlertEndDate($value, $limit = 0, $offset = 0, $objectTypes = null)
  87. * @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByLocalizedfields($field, $value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
  88. * @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByMessage($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
  89. * @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByXPost($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
  90. * @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByEwsSearchId($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
  91. * @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByOtherLocation($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
  92. * @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByAttachment($value, $limit = 0, $offset = 0, $objectTypes = null)
  93. * @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByEnableTwitterNotification($value, $limit = 0, $offset = 0, $objectTypes = null)
  94. * @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByEnableSMSNotification($value, $limit = 0, $offset = 0, $objectTypes = null)
  95. * @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByEnableEmailNotification($value, $limit = 0, $offset = 0, $objectTypes = null)
  96. * @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByPreviewText($value, $limit = 0, $offset = 0, $objectTypes = null)
  97. * @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByStatus($value, $limit = 0, $offset = 0, $objectTypes = null)
  98. * @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByGuid($value, $limit = 0, $offset = 0, $objectTypes = null)
  99. * @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByTwitterId($value, $limit = 0, $offset = 0, $objectTypes = null)
  100. * @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByTwitterLog($value, $limit = 0, $offset = 0, $objectTypes = null)
  101. * @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByIsEmailSent($value, $limit = 0, $offset = 0, $objectTypes = null)
  102. * @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByXAttachment($value, $limit = 0, $offset = 0, $objectTypes = null)
  103. * @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByPolygon($value, $limit = 0, $offset = 0, $objectTypes = null)
  104. * @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByIsPolygon($value, $limit = 0, $offset = 0, $objectTypes = null)
  105. * @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByNotificationType($value, $limit = 0, $offset = 0, $objectTypes = null)
  106. * @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByPolygonXAtachment($value, $limit = 0, $offset = 0, $objectTypes = null)
  107. * @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByUserGroup($value, $limit = 0, $offset = 0, $objectTypes = null)
  108. * @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByXHistoryAtachment($value, $limit = 0, $offset = 0, $objectTypes = null)
  109. * @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByEndXAttachment($value, $limit = 0, $offset = 0, $objectTypes = null)
  110. * @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByAlertPage($value, $limit = 0, $offset = 0, $objectTypes = null)
  111. * @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByIsManned($value, $limit = 0, $offset = 0, $objectTypes = null)
  112. * @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByIsSent($value, $limit = 0, $offset = 0, $objectTypes = null)
  113. * @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByAlertId($value, $limit = 0, $offset = 0, $objectTypes = null)
  114. * @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByTweetID($value, $limit = 0, $offset = 0, $objectTypes = null)
  115. * @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByTitle($value, $limit = 0, $offset = 0, $objectTypes = null)
  116. * @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByAlertStatusCategory($value, $limit = 0, $offset = 0, $objectTypes = null)
  117. * @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByLastModifiedDate($value, $limit = 0, $offset = 0, $objectTypes = null)
  118. * @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByRawText($value, $limit = 0, $offset = 0, $objectTypes = null)
  119. * @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByHash($value, $limit = 0, $offset = 0, $objectTypes = null)
  120. */
  121. class EwsNotification extends Concrete
  122. {
  123. protected $o_classId "ews_notification";
  124. protected $o_className "EwsNotification";
  125. protected $notifyAdmit;
  126. protected $alertAction;
  127. protected $alertType;
  128. protected $alertStatus;
  129. protected $weatherPhenomenon;
  130. protected $alertHazard;
  131. protected $region;
  132. protected $governorate;
  133. protected $mapGovernorate;
  134. protected $ewsOtherLocations;
  135. protected $municipality;
  136. protected $center;
  137. protected $district;
  138. protected $otherLocations;
  139. protected $user;
  140. protected $editor;
  141. protected $coordinates;
  142. protected $addressComponents;
  143. protected $startDate;
  144. protected $endDate;
  145. protected $alertEndDate;
  146. protected $localizedfields;
  147. protected $attachment;
  148. protected $enableTwitterNotification;
  149. protected $enableSMSNotification;
  150. protected $enableEmailNotification;
  151. protected $previewText;
  152. protected $status;
  153. protected $guid;
  154. protected $twitterId;
  155. protected $twitterLog;
  156. protected $isEmailSent;
  157. protected $xAttachment;
  158. protected $polygon;
  159. protected $isPolygon;
  160. protected $notificationType;
  161. protected $polygonXAtachment;
  162. protected $userGroup;
  163. protected $xHistoryAtachment;
  164. protected $endXAttachment;
  165. protected $alertPage;
  166. protected $isManned;
  167. protected $isSent;
  168. protected $alertId;
  169. protected $tweetID;
  170. protected $title;
  171. protected $alertStatusCategory;
  172. protected $lastModifiedDate;
  173. protected $rawText;
  174. protected $hash;
  175. /**
  176. * @param array $values
  177. * @return \Pimcore\Model\DataObject\EwsNotification
  178. */
  179. public static function create($values = array()) {
  180.     $object = new static();
  181.     $object->setValues($values);
  182.     return $object;
  183. }
  184. /**
  185. * Get notifyAdmit - Notify Admit
  186. * @return bool|null
  187. */
  188. public function getNotifyAdmit(): ?bool
  189. {
  190.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  191.         $preValue $this->preGetValue("notifyAdmit");
  192.         if ($preValue !== null) {
  193.             return $preValue;
  194.         }
  195.     }
  196.     $data $this->notifyAdmit;
  197.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  198.         return $data->getPlain();
  199.     }
  200.     return $data;
  201. }
  202. /**
  203. * Set notifyAdmit - Notify Admit
  204. * @param bool|null $notifyAdmit
  205. * @return \Pimcore\Model\DataObject\EwsNotification
  206. */
  207. public function setNotifyAdmit(?bool $notifyAdmit)
  208. {
  209.     $this->notifyAdmit $notifyAdmit;
  210.     return $this;
  211. }
  212. /**
  213. * Get alertAction - Alert Action
  214. * @return \Pimcore\Model\DataObject\AlertAction[]
  215. */
  216. public function getAlertAction(): array
  217. {
  218.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  219.         $preValue $this->preGetValue("alertAction");
  220.         if ($preValue !== null) {
  221.             return $preValue;
  222.         }
  223.     }
  224.     $data $this->getClass()->getFieldDefinition("alertAction")->preGetData($this);
  225.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  226.         return $data->getPlain();
  227.     }
  228.     return $data;
  229. }
  230. /**
  231. * Set alertAction - Alert Action
  232. * @param \Pimcore\Model\DataObject\AlertAction[] $alertAction
  233. * @return \Pimcore\Model\DataObject\EwsNotification
  234. */
  235. public function setAlertAction(?array $alertAction)
  236. {
  237.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
  238.     $fd $this->getClass()->getFieldDefinition("alertAction");
  239.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  240.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  241.     $currentData $this->getAlertAction();
  242.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  243.     $isEqual $fd->isEqual($currentData$alertAction);
  244.     if (!$isEqual) {
  245.         $this->markFieldDirty("alertAction"true);
  246.     }
  247.     $this->alertAction $fd->preSetData($this$alertAction);
  248.     return $this;
  249. }
  250. /**
  251. * Get alertType - Alert Type
  252. * @return \Pimcore\Model\DataObject\AlertType|null
  253. */
  254. public function getAlertType(): ?\Pimcore\Model\Element\AbstractElement
  255. {
  256.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  257.         $preValue $this->preGetValue("alertType");
  258.         if ($preValue !== null) {
  259.             return $preValue;
  260.         }
  261.     }
  262.     $data $this->getClass()->getFieldDefinition("alertType")->preGetData($this);
  263.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  264.         return $data->getPlain();
  265.     }
  266.     return $data;
  267. }
  268. /**
  269. * Set alertType - Alert Type
  270. * @param \Pimcore\Model\DataObject\AlertType|null $alertType
  271. * @return \Pimcore\Model\DataObject\EwsNotification
  272. */
  273. public function setAlertType(?\Pimcore\Model\Element\AbstractElement $alertType)
  274. {
  275.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
  276.     $fd $this->getClass()->getFieldDefinition("alertType");
  277.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  278.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  279.     $currentData $this->getAlertType();
  280.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  281.     $isEqual $fd->isEqual($currentData$alertType);
  282.     if (!$isEqual) {
  283.         $this->markFieldDirty("alertType"true);
  284.     }
  285.     $this->alertType $fd->preSetData($this$alertType);
  286.     return $this;
  287. }
  288. /**
  289. * Get alertStatus - Alert Status
  290. * @return \Pimcore\Model\DataObject\AlertStatus|null
  291. */
  292. public function getAlertStatus(): ?\Pimcore\Model\Element\AbstractElement
  293. {
  294.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  295.         $preValue $this->preGetValue("alertStatus");
  296.         if ($preValue !== null) {
  297.             return $preValue;
  298.         }
  299.     }
  300.     $data $this->getClass()->getFieldDefinition("alertStatus")->preGetData($this);
  301.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  302.         return $data->getPlain();
  303.     }
  304.     return $data;
  305. }
  306. /**
  307. * Set alertStatus - Alert Status
  308. * @param \Pimcore\Model\DataObject\AlertStatus|null $alertStatus
  309. * @return \Pimcore\Model\DataObject\EwsNotification
  310. */
  311. public function setAlertStatus(?\Pimcore\Model\Element\AbstractElement $alertStatus)
  312. {
  313.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
  314.     $fd $this->getClass()->getFieldDefinition("alertStatus");
  315.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  316.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  317.     $currentData $this->getAlertStatus();
  318.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  319.     $isEqual $fd->isEqual($currentData$alertStatus);
  320.     if (!$isEqual) {
  321.         $this->markFieldDirty("alertStatus"true);
  322.     }
  323.     $this->alertStatus $fd->preSetData($this$alertStatus);
  324.     return $this;
  325. }
  326. /**
  327. * Get weatherPhenomenon - Weather Phenomenon
  328. * @return \Pimcore\Model\DataObject\PhenomenaList|null
  329. */
  330. public function getWeatherPhenomenon(): ?\Pimcore\Model\Element\AbstractElement
  331. {
  332.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  333.         $preValue $this->preGetValue("weatherPhenomenon");
  334.         if ($preValue !== null) {
  335.             return $preValue;
  336.         }
  337.     }
  338.     $data $this->getClass()->getFieldDefinition("weatherPhenomenon")->preGetData($this);
  339.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  340.         return $data->getPlain();
  341.     }
  342.     return $data;
  343. }
  344. /**
  345. * Set weatherPhenomenon - Weather Phenomenon
  346. * @param \Pimcore\Model\DataObject\PhenomenaList|null $weatherPhenomenon
  347. * @return \Pimcore\Model\DataObject\EwsNotification
  348. */
  349. public function setWeatherPhenomenon(?\Pimcore\Model\Element\AbstractElement $weatherPhenomenon)
  350. {
  351.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
  352.     $fd $this->getClass()->getFieldDefinition("weatherPhenomenon");
  353.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  354.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  355.     $currentData $this->getWeatherPhenomenon();
  356.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  357.     $isEqual $fd->isEqual($currentData$weatherPhenomenon);
  358.     if (!$isEqual) {
  359.         $this->markFieldDirty("weatherPhenomenon"true);
  360.     }
  361.     $this->weatherPhenomenon $fd->preSetData($this$weatherPhenomenon);
  362.     return $this;
  363. }
  364. /**
  365. * Get alertHazard - Alert Hazard
  366. * @return \Pimcore\Model\DataObject\AlertHazard[]
  367. */
  368. public function getAlertHazard(): array
  369. {
  370.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  371.         $preValue $this->preGetValue("alertHazard");
  372.         if ($preValue !== null) {
  373.             return $preValue;
  374.         }
  375.     }
  376.     $data $this->getClass()->getFieldDefinition("alertHazard")->preGetData($this);
  377.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  378.         return $data->getPlain();
  379.     }
  380.     return $data;
  381. }
  382. /**
  383. * Set alertHazard - Alert Hazard
  384. * @param \Pimcore\Model\DataObject\AlertHazard[] $alertHazard
  385. * @return \Pimcore\Model\DataObject\EwsNotification
  386. */
  387. public function setAlertHazard(?array $alertHazard)
  388. {
  389.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
  390.     $fd $this->getClass()->getFieldDefinition("alertHazard");
  391.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  392.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  393.     $currentData $this->getAlertHazard();
  394.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  395.     $isEqual $fd->isEqual($currentData$alertHazard);
  396.     if (!$isEqual) {
  397.         $this->markFieldDirty("alertHazard"true);
  398.     }
  399.     $this->alertHazard $fd->preSetData($this$alertHazard);
  400.     return $this;
  401. }
  402. /**
  403. * Get region - Region
  404. * @return \Pimcore\Model\DataObject\Region|null
  405. */
  406. public function getRegion(): ?\Pimcore\Model\Element\AbstractElement
  407. {
  408.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  409.         $preValue $this->preGetValue("region");
  410.         if ($preValue !== null) {
  411.             return $preValue;
  412.         }
  413.     }
  414.     $data $this->getClass()->getFieldDefinition("region")->preGetData($this);
  415.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  416.         return $data->getPlain();
  417.     }
  418.     return $data;
  419. }
  420. /**
  421. * Set region - Region
  422. * @param \Pimcore\Model\DataObject\Region|null $region
  423. * @return \Pimcore\Model\DataObject\EwsNotification
  424. */
  425. public function setRegion(?\Pimcore\Model\Element\AbstractElement $region)
  426. {
  427.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
  428.     $fd $this->getClass()->getFieldDefinition("region");
  429.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  430.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  431.     $currentData $this->getRegion();
  432.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  433.     $isEqual $fd->isEqual($currentData$region);
  434.     if (!$isEqual) {
  435.         $this->markFieldDirty("region"true);
  436.     }
  437.     $this->region $fd->preSetData($this$region);
  438.     return $this;
  439. }
  440. /**
  441. * Get governorate - Governorate
  442. * @return \Pimcore\Model\DataObject\Governorate[]
  443. */
  444. public function getGovernorate(): array
  445. {
  446.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  447.         $preValue $this->preGetValue("governorate");
  448.         if ($preValue !== null) {
  449.             return $preValue;
  450.         }
  451.     }
  452.     $data $this->getClass()->getFieldDefinition("governorate")->preGetData($this);
  453.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  454.         return $data->getPlain();
  455.     }
  456.     return $data;
  457. }
  458. /**
  459. * Set governorate - Governorate
  460. * @param \Pimcore\Model\DataObject\Governorate[] $governorate
  461. * @return \Pimcore\Model\DataObject\EwsNotification
  462. */
  463. public function setGovernorate(?array $governorate)
  464. {
  465.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
  466.     $fd $this->getClass()->getFieldDefinition("governorate");
  467.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  468.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  469.     $currentData $this->getGovernorate();
  470.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  471.     $isEqual $fd->isEqual($currentData$governorate);
  472.     if (!$isEqual) {
  473.         $this->markFieldDirty("governorate"true);
  474.     }
  475.     $this->governorate $fd->preSetData($this$governorate);
  476.     return $this;
  477. }
  478. /**
  479. * Get mapGovernorate - Map Governorate
  480. * @return \Pimcore\Model\DataObject\Governorate[]
  481. */
  482. public function getMapGovernorate(): array
  483. {
  484.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  485.         $preValue $this->preGetValue("mapGovernorate");
  486.         if ($preValue !== null) {
  487.             return $preValue;
  488.         }
  489.     }
  490.     $data $this->getClass()->getFieldDefinition("mapGovernorate")->preGetData($this);
  491.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  492.         return $data->getPlain();
  493.     }
  494.     return $data;
  495. }
  496. /**
  497. * Set mapGovernorate - Map Governorate
  498. * @param \Pimcore\Model\DataObject\Governorate[] $mapGovernorate
  499. * @return \Pimcore\Model\DataObject\EwsNotification
  500. */
  501. public function setMapGovernorate(?array $mapGovernorate)
  502. {
  503.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
  504.     $fd $this->getClass()->getFieldDefinition("mapGovernorate");
  505.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  506.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  507.     $currentData $this->getMapGovernorate();
  508.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  509.     $isEqual $fd->isEqual($currentData$mapGovernorate);
  510.     if (!$isEqual) {
  511.         $this->markFieldDirty("mapGovernorate"true);
  512.     }
  513.     $this->mapGovernorate $fd->preSetData($this$mapGovernorate);
  514.     return $this;
  515. }
  516. /**
  517. * Get ewsOtherLocations - EWS Other Locations
  518. * @return \Pimcore\Model\DataObject\EwsOtherLocation[]
  519. */
  520. public function getEwsOtherLocations(): array
  521. {
  522.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  523.         $preValue $this->preGetValue("ewsOtherLocations");
  524.         if ($preValue !== null) {
  525.             return $preValue;
  526.         }
  527.     }
  528.     $data $this->getClass()->getFieldDefinition("ewsOtherLocations")->preGetData($this);
  529.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  530.         return $data->getPlain();
  531.     }
  532.     return $data;
  533. }
  534. /**
  535. * Set ewsOtherLocations - EWS Other Locations
  536. * @param \Pimcore\Model\DataObject\EwsOtherLocation[] $ewsOtherLocations
  537. * @return \Pimcore\Model\DataObject\EwsNotification
  538. */
  539. public function setEwsOtherLocations(?array $ewsOtherLocations)
  540. {
  541.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
  542.     $fd $this->getClass()->getFieldDefinition("ewsOtherLocations");
  543.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  544.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  545.     $currentData $this->getEwsOtherLocations();
  546.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  547.     $isEqual $fd->isEqual($currentData$ewsOtherLocations);
  548.     if (!$isEqual) {
  549.         $this->markFieldDirty("ewsOtherLocations"true);
  550.     }
  551.     $this->ewsOtherLocations $fd->preSetData($this$ewsOtherLocations);
  552.     return $this;
  553. }
  554. /**
  555. * Get municipality - Municipality
  556. * @return \Pimcore\Model\DataObject\Municipality[]
  557. */
  558. public function getMunicipality(): array
  559. {
  560.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  561.         $preValue $this->preGetValue("municipality");
  562.         if ($preValue !== null) {
  563.             return $preValue;
  564.         }
  565.     }
  566.     $data $this->getClass()->getFieldDefinition("municipality")->preGetData($this);
  567.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  568.         return $data->getPlain();
  569.     }
  570.     return $data;
  571. }
  572. /**
  573. * Set municipality - Municipality
  574. * @param \Pimcore\Model\DataObject\Municipality[] $municipality
  575. * @return \Pimcore\Model\DataObject\EwsNotification
  576. */
  577. public function setMunicipality(?array $municipality)
  578. {
  579.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
  580.     $fd $this->getClass()->getFieldDefinition("municipality");
  581.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  582.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  583.     $currentData $this->getMunicipality();
  584.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  585.     $isEqual $fd->isEqual($currentData$municipality);
  586.     if (!$isEqual) {
  587.         $this->markFieldDirty("municipality"true);
  588.     }
  589.     $this->municipality $fd->preSetData($this$municipality);
  590.     return $this;
  591. }
  592. /**
  593. * Get center - Center
  594. * @return \Pimcore\Model\DataObject\Centers[]
  595. */
  596. public function getCenter(): array
  597. {
  598.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  599.         $preValue $this->preGetValue("center");
  600.         if ($preValue !== null) {
  601.             return $preValue;
  602.         }
  603.     }
  604.     $data $this->getClass()->getFieldDefinition("center")->preGetData($this);
  605.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  606.         return $data->getPlain();
  607.     }
  608.     return $data;
  609. }
  610. /**
  611. * Set center - Center
  612. * @param \Pimcore\Model\DataObject\Centers[] $center
  613. * @return \Pimcore\Model\DataObject\EwsNotification
  614. */
  615. public function setCenter(?array $center)
  616. {
  617.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
  618.     $fd $this->getClass()->getFieldDefinition("center");
  619.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  620.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  621.     $currentData $this->getCenter();
  622.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  623.     $isEqual $fd->isEqual($currentData$center);
  624.     if (!$isEqual) {
  625.         $this->markFieldDirty("center"true);
  626.     }
  627.     $this->center $fd->preSetData($this$center);
  628.     return $this;
  629. }
  630. /**
  631. * Get district - District
  632. * @return \Pimcore\Model\DataObject\District[]
  633. */
  634. public function getDistrict(): array
  635. {
  636.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  637.         $preValue $this->preGetValue("district");
  638.         if ($preValue !== null) {
  639.             return $preValue;
  640.         }
  641.     }
  642.     $data $this->getClass()->getFieldDefinition("district")->preGetData($this);
  643.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  644.         return $data->getPlain();
  645.     }
  646.     return $data;
  647. }
  648. /**
  649. * Set district - District
  650. * @param \Pimcore\Model\DataObject\District[] $district
  651. * @return \Pimcore\Model\DataObject\EwsNotification
  652. */
  653. public function setDistrict(?array $district)
  654. {
  655.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
  656.     $fd $this->getClass()->getFieldDefinition("district");
  657.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  658.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  659.     $currentData $this->getDistrict();
  660.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  661.     $isEqual $fd->isEqual($currentData$district);
  662.     if (!$isEqual) {
  663.         $this->markFieldDirty("district"true);
  664.     }
  665.     $this->district $fd->preSetData($this$district);
  666.     return $this;
  667. }
  668. /**
  669. * Get otherLocations - Other Locations
  670. * @return \Pimcore\Model\DataObject\OtherLocation[]
  671. */
  672. public function getOtherLocations(): array
  673. {
  674.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  675.         $preValue $this->preGetValue("otherLocations");
  676.         if ($preValue !== null) {
  677.             return $preValue;
  678.         }
  679.     }
  680.     $data $this->getClass()->getFieldDefinition("otherLocations")->preGetData($this);
  681.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  682.         return $data->getPlain();
  683.     }
  684.     return $data;
  685. }
  686. /**
  687. * Set otherLocations - Other Locations
  688. * @param \Pimcore\Model\DataObject\OtherLocation[] $otherLocations
  689. * @return \Pimcore\Model\DataObject\EwsNotification
  690. */
  691. public function setOtherLocations(?array $otherLocations)
  692. {
  693.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
  694.     $fd $this->getClass()->getFieldDefinition("otherLocations");
  695.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  696.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  697.     $currentData $this->getOtherLocations();
  698.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  699.     $isEqual $fd->isEqual($currentData$otherLocations);
  700.     if (!$isEqual) {
  701.         $this->markFieldDirty("otherLocations"true);
  702.     }
  703.     $this->otherLocations $fd->preSetData($this$otherLocations);
  704.     return $this;
  705. }
  706. /**
  707. * Get user - User
  708. * @return \Pimcore\Model\DataObject\Customer|null
  709. */
  710. public function getUser(): ?\Pimcore\Model\Element\AbstractElement
  711. {
  712.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  713.         $preValue $this->preGetValue("user");
  714.         if ($preValue !== null) {
  715.             return $preValue;
  716.         }
  717.     }
  718.     $data $this->getClass()->getFieldDefinition("user")->preGetData($this);
  719.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  720.         return $data->getPlain();
  721.     }
  722.     return $data;
  723. }
  724. /**
  725. * Set user - User
  726. * @param \Pimcore\Model\DataObject\Customer|null $user
  727. * @return \Pimcore\Model\DataObject\EwsNotification
  728. */
  729. public function setUser(?\Pimcore\Model\Element\AbstractElement $user)
  730. {
  731.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
  732.     $fd $this->getClass()->getFieldDefinition("user");
  733.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  734.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  735.     $currentData $this->getUser();
  736.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  737.     $isEqual $fd->isEqual($currentData$user);
  738.     if (!$isEqual) {
  739.         $this->markFieldDirty("user"true);
  740.     }
  741.     $this->user $fd->preSetData($this$user);
  742.     return $this;
  743. }
  744. /**
  745. * Get editor - Editor
  746. * @return \Pimcore\Model\DataObject\Customer|null
  747. */
  748. public function getEditor(): ?\Pimcore\Model\Element\AbstractElement
  749. {
  750.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  751.         $preValue $this->preGetValue("editor");
  752.         if ($preValue !== null) {
  753.             return $preValue;
  754.         }
  755.     }
  756.     $data $this->getClass()->getFieldDefinition("editor")->preGetData($this);
  757.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  758.         return $data->getPlain();
  759.     }
  760.     return $data;
  761. }
  762. /**
  763. * Set editor - Editor
  764. * @param \Pimcore\Model\DataObject\Customer|null $editor
  765. * @return \Pimcore\Model\DataObject\EwsNotification
  766. */
  767. public function setEditor(?\Pimcore\Model\Element\AbstractElement $editor)
  768. {
  769.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
  770.     $fd $this->getClass()->getFieldDefinition("editor");
  771.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  772.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  773.     $currentData $this->getEditor();
  774.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  775.     $isEqual $fd->isEqual($currentData$editor);
  776.     if (!$isEqual) {
  777.         $this->markFieldDirty("editor"true);
  778.     }
  779.     $this->editor $fd->preSetData($this$editor);
  780.     return $this;
  781. }
  782. /**
  783. * Get coordinates - Coordinates
  784. * @return string|null
  785. */
  786. public function getCoordinates(): ?string
  787. {
  788.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  789.         $preValue $this->preGetValue("coordinates");
  790.         if ($preValue !== null) {
  791.             return $preValue;
  792.         }
  793.     }
  794.     $data $this->coordinates;
  795.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  796.         return $data->getPlain();
  797.     }
  798.     return $data;
  799. }
  800. /**
  801. * Set coordinates - Coordinates
  802. * @param string|null $coordinates
  803. * @return \Pimcore\Model\DataObject\EwsNotification
  804. */
  805. public function setCoordinates(?string $coordinates)
  806. {
  807.     $this->coordinates $coordinates;
  808.     return $this;
  809. }
  810. /**
  811. * @return \Pimcore\Model\DataObject\Fieldcollection|null
  812. */
  813. public function getAddressComponents(): ?\Pimcore\Model\DataObject\Fieldcollection
  814. {
  815.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  816.         $preValue $this->preGetValue("addressComponents");
  817.         if ($preValue !== null) {
  818.             return $preValue;
  819.         }
  820.     }
  821.     $data $this->getClass()->getFieldDefinition("addressComponents")->preGetData($this);
  822.     return $data;
  823. }
  824. /**
  825. * Set addressComponents - Address Components
  826. * @param \Pimcore\Model\DataObject\Fieldcollection|null $addressComponents
  827. * @return \Pimcore\Model\DataObject\EwsNotification
  828. */
  829. public function setAddressComponents(?\Pimcore\Model\DataObject\Fieldcollection $addressComponents)
  830. {
  831.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Fieldcollections $fd */
  832.     $fd $this->getClass()->getFieldDefinition("addressComponents");
  833.     $this->addressComponents $fd->preSetData($this$addressComponents);
  834.     return $this;
  835. }
  836. /**
  837. * Get startDate - Start Date
  838. * @return \Carbon\Carbon|null
  839. */
  840. public function getStartDate(): ?\Carbon\Carbon
  841. {
  842.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  843.         $preValue $this->preGetValue("startDate");
  844.         if ($preValue !== null) {
  845.             return $preValue;
  846.         }
  847.     }
  848.     $data $this->startDate;
  849.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  850.         return $data->getPlain();
  851.     }
  852.     return $data;
  853. }
  854. /**
  855. * Set startDate - Start Date
  856. * @param \Carbon\Carbon|null $startDate
  857. * @return \Pimcore\Model\DataObject\EwsNotification
  858. */
  859. public function setStartDate(?\Carbon\Carbon $startDate)
  860. {
  861.     $this->startDate $startDate;
  862.     return $this;
  863. }
  864. /**
  865. * Get endDate - End Date
  866. * @return \Carbon\Carbon|null
  867. */
  868. public function getEndDate(): ?\Carbon\Carbon
  869. {
  870.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  871.         $preValue $this->preGetValue("endDate");
  872.         if ($preValue !== null) {
  873.             return $preValue;
  874.         }
  875.     }
  876.     $data $this->endDate;
  877.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  878.         return $data->getPlain();
  879.     }
  880.     return $data;
  881. }
  882. /**
  883. * Set endDate - End Date
  884. * @param \Carbon\Carbon|null $endDate
  885. * @return \Pimcore\Model\DataObject\EwsNotification
  886. */
  887. public function setEndDate(?\Carbon\Carbon $endDate)
  888. {
  889.     $this->endDate $endDate;
  890.     return $this;
  891. }
  892. /**
  893. * Get alertEndDate - Alert End Date
  894. * @return \Carbon\Carbon|null
  895. */
  896. public function getAlertEndDate(): ?\Carbon\Carbon
  897. {
  898.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  899.         $preValue $this->preGetValue("alertEndDate");
  900.         if ($preValue !== null) {
  901.             return $preValue;
  902.         }
  903.     }
  904.     $data $this->alertEndDate;
  905.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  906.         return $data->getPlain();
  907.     }
  908.     return $data;
  909. }
  910. /**
  911. * Set alertEndDate - Alert End Date
  912. * @param \Carbon\Carbon|null $alertEndDate
  913. * @return \Pimcore\Model\DataObject\EwsNotification
  914. */
  915. public function setAlertEndDate(?\Carbon\Carbon $alertEndDate)
  916. {
  917.     $this->alertEndDate $alertEndDate;
  918.     return $this;
  919. }
  920. /**
  921. * Get localizedfields - 
  922. * @return \Pimcore\Model\DataObject\Localizedfield|null
  923. */
  924. public function getLocalizedfields(): ?\Pimcore\Model\DataObject\Localizedfield
  925. {
  926.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  927.         $preValue $this->preGetValue("localizedfields");
  928.         if ($preValue !== null) {
  929.             return $preValue;
  930.         }
  931.     }
  932.     $data $this->getClass()->getFieldDefinition("localizedfields")->preGetData($this);
  933.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  934.         return $data->getPlain();
  935.     }
  936.     return $data;
  937. }
  938. /**
  939. * Get message - Message
  940. * @return string|null
  941. */
  942. public function getMessage($language null): ?string
  943. {
  944.     $data $this->getLocalizedfields()->getLocalizedValue("message"$language);
  945.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  946.         $preValue $this->preGetValue("message");
  947.         if ($preValue !== null) {
  948.             return $preValue;
  949.         }
  950.     }
  951.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  952.         return $data->getPlain();
  953.     }
  954.     return $data;
  955. }
  956. /**
  957. * Get xPost - X Post
  958. * @return string|null
  959. */
  960. public function getXPost($language null): ?string
  961. {
  962.     $data $this->getLocalizedfields()->getLocalizedValue("xPost"$language);
  963.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  964.         $preValue $this->preGetValue("xPost");
  965.         if ($preValue !== null) {
  966.             return $preValue;
  967.         }
  968.     }
  969.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  970.         return $data->getPlain();
  971.     }
  972.     return $data;
  973. }
  974. /**
  975. * Get ewsSearchId - Ews Search Id
  976. * @return string|null
  977. */
  978. public function getEwsSearchId($language null): ?string
  979. {
  980.     $data $this->getLocalizedfields()->getLocalizedValue("ewsSearchId"$language);
  981.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  982.         $preValue $this->preGetValue("ewsSearchId");
  983.         if ($preValue !== null) {
  984.             return $preValue;
  985.         }
  986.     }
  987.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  988.         return $data->getPlain();
  989.     }
  990.     return $data;
  991. }
  992. /**
  993. * Get otherLocation - Other Location
  994. * @return string|null
  995. */
  996. public function getOtherLocation($language null): ?string
  997. {
  998.     $data $this->getLocalizedfields()->getLocalizedValue("otherLocation"$language);
  999.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1000.         $preValue $this->preGetValue("otherLocation");
  1001.         if ($preValue !== null) {
  1002.             return $preValue;
  1003.         }
  1004.     }
  1005.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1006.         return $data->getPlain();
  1007.     }
  1008.     return $data;
  1009. }
  1010. /**
  1011. * Set localizedfields - 
  1012. * @param \Pimcore\Model\DataObject\Localizedfield|null $localizedfields
  1013. * @return \Pimcore\Model\DataObject\EwsNotification
  1014. */
  1015. public function setLocalizedfields(?\Pimcore\Model\DataObject\Localizedfield $localizedfields)
  1016. {
  1017.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  1018.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  1019.     $currentData $this->getLocalizedfields();
  1020.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  1021.     $this->markFieldDirty("localizedfields"true);
  1022.     $this->localizedfields $localizedfields;
  1023.     return $this;
  1024. }
  1025. /**
  1026. * Set message - Message
  1027. * @param string|null $message
  1028. * @return \Pimcore\Model\DataObject\EwsNotification
  1029. */
  1030. public function setMessage (?string $message$language null)
  1031. {
  1032.     $isEqual false;
  1033.     $this->getLocalizedfields()->setLocalizedValue("message"$message$language, !$isEqual);
  1034.     return $this;
  1035. }
  1036. /**
  1037. * Set xPost - X Post
  1038. * @param string|null $xPost
  1039. * @return \Pimcore\Model\DataObject\EwsNotification
  1040. */
  1041. public function setXPost (?string $xPost$language null)
  1042. {
  1043.     $isEqual false;
  1044.     $this->getLocalizedfields()->setLocalizedValue("xPost"$xPost$language, !$isEqual);
  1045.     return $this;
  1046. }
  1047. /**
  1048. * Set ewsSearchId - Ews Search Id
  1049. * @param string|null $ewsSearchId
  1050. * @return \Pimcore\Model\DataObject\EwsNotification
  1051. */
  1052. public function setEwsSearchId (?string $ewsSearchId$language null)
  1053. {
  1054.     $isEqual false;
  1055.     $this->getLocalizedfields()->setLocalizedValue("ewsSearchId"$ewsSearchId$language, !$isEqual);
  1056.     return $this;
  1057. }
  1058. /**
  1059. * Set otherLocation - Other Location
  1060. * @param string|null $otherLocation
  1061. * @return \Pimcore\Model\DataObject\EwsNotification
  1062. */
  1063. public function setOtherLocation (?string $otherLocation$language null)
  1064. {
  1065.     $isEqual false;
  1066.     $this->getLocalizedfields()->setLocalizedValue("otherLocation"$otherLocation$language, !$isEqual);
  1067.     return $this;
  1068. }
  1069. /**
  1070. * Get attachment - Attachment
  1071. * @return \Pimcore\Model\Asset|null
  1072. */
  1073. public function getAttachment(): ?\Pimcore\Model\Element\AbstractElement
  1074. {
  1075.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1076.         $preValue $this->preGetValue("attachment");
  1077.         if ($preValue !== null) {
  1078.             return $preValue;
  1079.         }
  1080.     }
  1081.     $data $this->getClass()->getFieldDefinition("attachment")->preGetData($this);
  1082.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1083.         return $data->getPlain();
  1084.     }
  1085.     return $data;
  1086. }
  1087. /**
  1088. * Set attachment - Attachment
  1089. * @param \Pimcore\Model\Asset|null $attachment
  1090. * @return \Pimcore\Model\DataObject\EwsNotification
  1091. */
  1092. public function setAttachment(?\Pimcore\Model\Element\AbstractElement $attachment)
  1093. {
  1094.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
  1095.     $fd $this->getClass()->getFieldDefinition("attachment");
  1096.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  1097.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  1098.     $currentData $this->getAttachment();
  1099.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  1100.     $isEqual $fd->isEqual($currentData$attachment);
  1101.     if (!$isEqual) {
  1102.         $this->markFieldDirty("attachment"true);
  1103.     }
  1104.     $this->attachment $fd->preSetData($this$attachment);
  1105.     return $this;
  1106. }
  1107. /**
  1108. * Get enableTwitterNotification - Enable Twitter Notification
  1109. * @return bool|null
  1110. */
  1111. public function getEnableTwitterNotification(): ?bool
  1112. {
  1113.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1114.         $preValue $this->preGetValue("enableTwitterNotification");
  1115.         if ($preValue !== null) {
  1116.             return $preValue;
  1117.         }
  1118.     }
  1119.     $data $this->enableTwitterNotification;
  1120.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1121.         return $data->getPlain();
  1122.     }
  1123.     return $data;
  1124. }
  1125. /**
  1126. * Set enableTwitterNotification - Enable Twitter Notification
  1127. * @param bool|null $enableTwitterNotification
  1128. * @return \Pimcore\Model\DataObject\EwsNotification
  1129. */
  1130. public function setEnableTwitterNotification(?bool $enableTwitterNotification)
  1131. {
  1132.     $this->enableTwitterNotification $enableTwitterNotification;
  1133.     return $this;
  1134. }
  1135. /**
  1136. * Get enableSMSNotification - Enable SMS Notification
  1137. * @return bool|null
  1138. */
  1139. public function getEnableSMSNotification(): ?bool
  1140. {
  1141.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1142.         $preValue $this->preGetValue("enableSMSNotification");
  1143.         if ($preValue !== null) {
  1144.             return $preValue;
  1145.         }
  1146.     }
  1147.     $data $this->enableSMSNotification;
  1148.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1149.         return $data->getPlain();
  1150.     }
  1151.     return $data;
  1152. }
  1153. /**
  1154. * Set enableSMSNotification - Enable SMS Notification
  1155. * @param bool|null $enableSMSNotification
  1156. * @return \Pimcore\Model\DataObject\EwsNotification
  1157. */
  1158. public function setEnableSMSNotification(?bool $enableSMSNotification)
  1159. {
  1160.     $this->enableSMSNotification $enableSMSNotification;
  1161.     return $this;
  1162. }
  1163. /**
  1164. * Get enableEmailNotification - Enable Email Notification
  1165. * @return bool|null
  1166. */
  1167. public function getEnableEmailNotification(): ?bool
  1168. {
  1169.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1170.         $preValue $this->preGetValue("enableEmailNotification");
  1171.         if ($preValue !== null) {
  1172.             return $preValue;
  1173.         }
  1174.     }
  1175.     $data $this->enableEmailNotification;
  1176.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1177.         return $data->getPlain();
  1178.     }
  1179.     return $data;
  1180. }
  1181. /**
  1182. * Set enableEmailNotification - Enable Email Notification
  1183. * @param bool|null $enableEmailNotification
  1184. * @return \Pimcore\Model\DataObject\EwsNotification
  1185. */
  1186. public function setEnableEmailNotification(?bool $enableEmailNotification)
  1187. {
  1188.     $this->enableEmailNotification $enableEmailNotification;
  1189.     return $this;
  1190. }
  1191. /**
  1192. * Get previewText - Preview Text
  1193. * @return bool|null
  1194. */
  1195. public function getPreviewText(): ?bool
  1196. {
  1197.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1198.         $preValue $this->preGetValue("previewText");
  1199.         if ($preValue !== null) {
  1200.             return $preValue;
  1201.         }
  1202.     }
  1203.     $data $this->previewText;
  1204.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1205.         return $data->getPlain();
  1206.     }
  1207.     return $data;
  1208. }
  1209. /**
  1210. * Set previewText - Preview Text
  1211. * @param bool|null $previewText
  1212. * @return \Pimcore\Model\DataObject\EwsNotification
  1213. */
  1214. public function setPreviewText(?bool $previewText)
  1215. {
  1216.     $this->previewText $previewText;
  1217.     return $this;
  1218. }
  1219. /**
  1220. * Get status - Status
  1221. * @return string|null
  1222. */
  1223. public function getStatus(): ?string
  1224. {
  1225.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1226.         $preValue $this->preGetValue("status");
  1227.         if ($preValue !== null) {
  1228.             return $preValue;
  1229.         }
  1230.     }
  1231.     $data $this->status;
  1232.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1233.         return $data->getPlain();
  1234.     }
  1235.     return $data;
  1236. }
  1237. /**
  1238. * Set status - Status
  1239. * @param string|null $status
  1240. * @return \Pimcore\Model\DataObject\EwsNotification
  1241. */
  1242. public function setStatus(?string $status)
  1243. {
  1244.     $this->status $status;
  1245.     return $this;
  1246. }
  1247. /**
  1248. * Get guid - Guid
  1249. * @return string|null
  1250. */
  1251. public function getGuid(): ?string
  1252. {
  1253.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1254.         $preValue $this->preGetValue("guid");
  1255.         if ($preValue !== null) {
  1256.             return $preValue;
  1257.         }
  1258.     }
  1259.     $data $this->guid;
  1260.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1261.         return $data->getPlain();
  1262.     }
  1263.     return $data;
  1264. }
  1265. /**
  1266. * Set guid - Guid
  1267. * @param string|null $guid
  1268. * @return \Pimcore\Model\DataObject\EwsNotification
  1269. */
  1270. public function setGuid(?string $guid)
  1271. {
  1272.     $this->guid $guid;
  1273.     return $this;
  1274. }
  1275. /**
  1276. * Get twitterId - Twitter Id
  1277. * @return string|null
  1278. */
  1279. public function getTwitterId(): ?string
  1280. {
  1281.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1282.         $preValue $this->preGetValue("twitterId");
  1283.         if ($preValue !== null) {
  1284.             return $preValue;
  1285.         }
  1286.     }
  1287.     $data $this->twitterId;
  1288.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1289.         return $data->getPlain();
  1290.     }
  1291.     return $data;
  1292. }
  1293. /**
  1294. * Set twitterId - Twitter Id
  1295. * @param string|null $twitterId
  1296. * @return \Pimcore\Model\DataObject\EwsNotification
  1297. */
  1298. public function setTwitterId(?string $twitterId)
  1299. {
  1300.     $this->twitterId $twitterId;
  1301.     return $this;
  1302. }
  1303. /**
  1304. * Get twitterLog - Twitter Log
  1305. * @return string|null
  1306. */
  1307. public function getTwitterLog(): ?string
  1308. {
  1309.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1310.         $preValue $this->preGetValue("twitterLog");
  1311.         if ($preValue !== null) {
  1312.             return $preValue;
  1313.         }
  1314.     }
  1315.     $data $this->twitterLog;
  1316.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1317.         return $data->getPlain();
  1318.     }
  1319.     return $data;
  1320. }
  1321. /**
  1322. * Set twitterLog - Twitter Log
  1323. * @param string|null $twitterLog
  1324. * @return \Pimcore\Model\DataObject\EwsNotification
  1325. */
  1326. public function setTwitterLog(?string $twitterLog)
  1327. {
  1328.     $this->twitterLog $twitterLog;
  1329.     return $this;
  1330. }
  1331. /**
  1332. * Get isEmailSent - Is Email Sent
  1333. * @return bool|null
  1334. */
  1335. public function getIsEmailSent(): ?bool
  1336. {
  1337.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1338.         $preValue $this->preGetValue("isEmailSent");
  1339.         if ($preValue !== null) {
  1340.             return $preValue;
  1341.         }
  1342.     }
  1343.     $data $this->isEmailSent;
  1344.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1345.         return $data->getPlain();
  1346.     }
  1347.     return $data;
  1348. }
  1349. /**
  1350. * Set isEmailSent - Is Email Sent
  1351. * @param bool|null $isEmailSent
  1352. * @return \Pimcore\Model\DataObject\EwsNotification
  1353. */
  1354. public function setIsEmailSent(?bool $isEmailSent)
  1355. {
  1356.     $this->isEmailSent $isEmailSent;
  1357.     return $this;
  1358. }
  1359. /**
  1360. * Get xAttachment - X Attachment
  1361. * @return \Pimcore\Model\Asset|null
  1362. */
  1363. public function getXAttachment(): ?\Pimcore\Model\Element\AbstractElement
  1364. {
  1365.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1366.         $preValue $this->preGetValue("xAttachment");
  1367.         if ($preValue !== null) {
  1368.             return $preValue;
  1369.         }
  1370.     }
  1371.     $data $this->getClass()->getFieldDefinition("xAttachment")->preGetData($this);
  1372.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1373.         return $data->getPlain();
  1374.     }
  1375.     return $data;
  1376. }
  1377. /**
  1378. * Set xAttachment - X Attachment
  1379. * @param \Pimcore\Model\Asset|null $xAttachment
  1380. * @return \Pimcore\Model\DataObject\EwsNotification
  1381. */
  1382. public function setXAttachment(?\Pimcore\Model\Element\AbstractElement $xAttachment)
  1383. {
  1384.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
  1385.     $fd $this->getClass()->getFieldDefinition("xAttachment");
  1386.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  1387.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  1388.     $currentData $this->getXAttachment();
  1389.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  1390.     $isEqual $fd->isEqual($currentData$xAttachment);
  1391.     if (!$isEqual) {
  1392.         $this->markFieldDirty("xAttachment"true);
  1393.     }
  1394.     $this->xAttachment $fd->preSetData($this$xAttachment);
  1395.     return $this;
  1396. }
  1397. /**
  1398. * Get polygon - Polygon
  1399. * @return \Pimcore\Model\DataObject\EwsPolygon|null
  1400. */
  1401. public function getPolygon(): ?\Pimcore\Model\Element\AbstractElement
  1402. {
  1403.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1404.         $preValue $this->preGetValue("polygon");
  1405.         if ($preValue !== null) {
  1406.             return $preValue;
  1407.         }
  1408.     }
  1409.     $data $this->getClass()->getFieldDefinition("polygon")->preGetData($this);
  1410.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1411.         return $data->getPlain();
  1412.     }
  1413.     return $data;
  1414. }
  1415. /**
  1416. * Set polygon - Polygon
  1417. * @param \Pimcore\Model\DataObject\EwsPolygon|null $polygon
  1418. * @return \Pimcore\Model\DataObject\EwsNotification
  1419. */
  1420. public function setPolygon(?\Pimcore\Model\Element\AbstractElement $polygon)
  1421. {
  1422.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
  1423.     $fd $this->getClass()->getFieldDefinition("polygon");
  1424.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  1425.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  1426.     $currentData $this->getPolygon();
  1427.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  1428.     $isEqual $fd->isEqual($currentData$polygon);
  1429.     if (!$isEqual) {
  1430.         $this->markFieldDirty("polygon"true);
  1431.     }
  1432.     $this->polygon $fd->preSetData($this$polygon);
  1433.     return $this;
  1434. }
  1435. /**
  1436. * Get isPolygon - Is Polygon
  1437. * @return bool|null
  1438. */
  1439. public function getIsPolygon(): ?bool
  1440. {
  1441.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1442.         $preValue $this->preGetValue("isPolygon");
  1443.         if ($preValue !== null) {
  1444.             return $preValue;
  1445.         }
  1446.     }
  1447.     $data $this->isPolygon;
  1448.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1449.         return $data->getPlain();
  1450.     }
  1451.     return $data;
  1452. }
  1453. /**
  1454. * Set isPolygon - Is Polygon
  1455. * @param bool|null $isPolygon
  1456. * @return \Pimcore\Model\DataObject\EwsNotification
  1457. */
  1458. public function setIsPolygon(?bool $isPolygon)
  1459. {
  1460.     $this->isPolygon $isPolygon;
  1461.     return $this;
  1462. }
  1463. /**
  1464. * Get notificationType - Notification Type
  1465. * @return string|null
  1466. */
  1467. public function getNotificationType(): ?string
  1468. {
  1469.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1470.         $preValue $this->preGetValue("notificationType");
  1471.         if ($preValue !== null) {
  1472.             return $preValue;
  1473.         }
  1474.     }
  1475.     $data $this->notificationType;
  1476.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1477.         return $data->getPlain();
  1478.     }
  1479.     return $data;
  1480. }
  1481. /**
  1482. * Set notificationType - Notification Type
  1483. * @param string|null $notificationType
  1484. * @return \Pimcore\Model\DataObject\EwsNotification
  1485. */
  1486. public function setNotificationType(?string $notificationType)
  1487. {
  1488.     $this->notificationType $notificationType;
  1489.     return $this;
  1490. }
  1491. /**
  1492. * Get polygonXAtachment - Polygon X Atachment
  1493. * @return \Pimcore\Model\Asset|null
  1494. */
  1495. public function getPolygonXAtachment(): ?\Pimcore\Model\Element\AbstractElement
  1496. {
  1497.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1498.         $preValue $this->preGetValue("polygonXAtachment");
  1499.         if ($preValue !== null) {
  1500.             return $preValue;
  1501.         }
  1502.     }
  1503.     $data $this->getClass()->getFieldDefinition("polygonXAtachment")->preGetData($this);
  1504.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1505.         return $data->getPlain();
  1506.     }
  1507.     return $data;
  1508. }
  1509. /**
  1510. * Set polygonXAtachment - Polygon X Atachment
  1511. * @param \Pimcore\Model\Asset|null $polygonXAtachment
  1512. * @return \Pimcore\Model\DataObject\EwsNotification
  1513. */
  1514. public function setPolygonXAtachment(?\Pimcore\Model\Element\AbstractElement $polygonXAtachment)
  1515. {
  1516.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
  1517.     $fd $this->getClass()->getFieldDefinition("polygonXAtachment");
  1518.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  1519.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  1520.     $currentData $this->getPolygonXAtachment();
  1521.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  1522.     $isEqual $fd->isEqual($currentData$polygonXAtachment);
  1523.     if (!$isEqual) {
  1524.         $this->markFieldDirty("polygonXAtachment"true);
  1525.     }
  1526.     $this->polygonXAtachment $fd->preSetData($this$polygonXAtachment);
  1527.     return $this;
  1528. }
  1529. /**
  1530. * Get userGroup - User Group
  1531. * @return \Pimcore\Model\DataObject\EwsAndReportUserGroup[]
  1532. */
  1533. public function getUserGroup(): array
  1534. {
  1535.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1536.         $preValue $this->preGetValue("userGroup");
  1537.         if ($preValue !== null) {
  1538.             return $preValue;
  1539.         }
  1540.     }
  1541.     $data $this->getClass()->getFieldDefinition("userGroup")->preGetData($this);
  1542.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1543.         return $data->getPlain();
  1544.     }
  1545.     return $data;
  1546. }
  1547. /**
  1548. * Set userGroup - User Group
  1549. * @param \Pimcore\Model\DataObject\EwsAndReportUserGroup[] $userGroup
  1550. * @return \Pimcore\Model\DataObject\EwsNotification
  1551. */
  1552. public function setUserGroup(?array $userGroup)
  1553. {
  1554.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
  1555.     $fd $this->getClass()->getFieldDefinition("userGroup");
  1556.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  1557.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  1558.     $currentData $this->getUserGroup();
  1559.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  1560.     $isEqual $fd->isEqual($currentData$userGroup);
  1561.     if (!$isEqual) {
  1562.         $this->markFieldDirty("userGroup"true);
  1563.     }
  1564.     $this->userGroup $fd->preSetData($this$userGroup);
  1565.     return $this;
  1566. }
  1567. /**
  1568. * Get xHistoryAtachment - X History Attachment
  1569. * @return \Pimcore\Model\Asset\Image|null
  1570. */
  1571. public function getXHistoryAtachment(): ?\Pimcore\Model\Element\AbstractElement
  1572. {
  1573.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1574.         $preValue $this->preGetValue("xHistoryAtachment");
  1575.         if ($preValue !== null) {
  1576.             return $preValue;
  1577.         }
  1578.     }
  1579.     $data $this->getClass()->getFieldDefinition("xHistoryAtachment")->preGetData($this);
  1580.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1581.         return $data->getPlain();
  1582.     }
  1583.     return $data;
  1584. }
  1585. /**
  1586. * Set xHistoryAtachment - X History Attachment
  1587. * @param \Pimcore\Model\Asset\Image|null $xHistoryAtachment
  1588. * @return \Pimcore\Model\DataObject\EwsNotification
  1589. */
  1590. public function setXHistoryAtachment(?\Pimcore\Model\Element\AbstractElement $xHistoryAtachment)
  1591. {
  1592.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
  1593.     $fd $this->getClass()->getFieldDefinition("xHistoryAtachment");
  1594.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  1595.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  1596.     $currentData $this->getXHistoryAtachment();
  1597.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  1598.     $isEqual $fd->isEqual($currentData$xHistoryAtachment);
  1599.     if (!$isEqual) {
  1600.         $this->markFieldDirty("xHistoryAtachment"true);
  1601.     }
  1602.     $this->xHistoryAtachment $fd->preSetData($this$xHistoryAtachment);
  1603.     return $this;
  1604. }
  1605. /**
  1606. * Get endXAttachment - End X Attachment
  1607. * @return \Pimcore\Model\Asset\Image|null
  1608. */
  1609. public function getEndXAttachment(): ?\Pimcore\Model\Element\AbstractElement
  1610. {
  1611.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1612.         $preValue $this->preGetValue("endXAttachment");
  1613.         if ($preValue !== null) {
  1614.             return $preValue;
  1615.         }
  1616.     }
  1617.     $data $this->getClass()->getFieldDefinition("endXAttachment")->preGetData($this);
  1618.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1619.         return $data->getPlain();
  1620.     }
  1621.     return $data;
  1622. }
  1623. /**
  1624. * Set endXAttachment - End X Attachment
  1625. * @param \Pimcore\Model\Asset\Image|null $endXAttachment
  1626. * @return \Pimcore\Model\DataObject\EwsNotification
  1627. */
  1628. public function setEndXAttachment(?\Pimcore\Model\Element\AbstractElement $endXAttachment)
  1629. {
  1630.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
  1631.     $fd $this->getClass()->getFieldDefinition("endXAttachment");
  1632.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  1633.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  1634.     $currentData $this->getEndXAttachment();
  1635.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  1636.     $isEqual $fd->isEqual($currentData$endXAttachment);
  1637.     if (!$isEqual) {
  1638.         $this->markFieldDirty("endXAttachment"true);
  1639.     }
  1640.     $this->endXAttachment $fd->preSetData($this$endXAttachment);
  1641.     return $this;
  1642. }
  1643. /**
  1644. * Get alertPage - Alert Page
  1645. * @return string|null
  1646. */
  1647. public function getAlertPage(): ?string
  1648. {
  1649.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1650.         $preValue $this->preGetValue("alertPage");
  1651.         if ($preValue !== null) {
  1652.             return $preValue;
  1653.         }
  1654.     }
  1655.     $data $this->alertPage;
  1656.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1657.         return $data->getPlain();
  1658.     }
  1659.     return $data;
  1660. }
  1661. /**
  1662. * Set alertPage - Alert Page
  1663. * @param string|null $alertPage
  1664. * @return \Pimcore\Model\DataObject\EwsNotification
  1665. */
  1666. public function setAlertPage(?string $alertPage)
  1667. {
  1668.     $this->alertPage $alertPage;
  1669.     return $this;
  1670. }
  1671. /**
  1672. * Get isManned - Is Manned
  1673. * @return bool|null
  1674. */
  1675. public function getIsManned(): ?bool
  1676. {
  1677.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1678.         $preValue $this->preGetValue("isManned");
  1679.         if ($preValue !== null) {
  1680.             return $preValue;
  1681.         }
  1682.     }
  1683.     $data $this->isManned;
  1684.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1685.         return $data->getPlain();
  1686.     }
  1687.     return $data;
  1688. }
  1689. /**
  1690. * Set isManned - Is Manned
  1691. * @param bool|null $isManned
  1692. * @return \Pimcore\Model\DataObject\EwsNotification
  1693. */
  1694. public function setIsManned(?bool $isManned)
  1695. {
  1696.     $this->isManned $isManned;
  1697.     return $this;
  1698. }
  1699. /**
  1700. * Get isSent - Is Sent
  1701. * @return bool|null
  1702. */
  1703. public function getIsSent(): ?bool
  1704. {
  1705.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1706.         $preValue $this->preGetValue("isSent");
  1707.         if ($preValue !== null) {
  1708.             return $preValue;
  1709.         }
  1710.     }
  1711.     $data $this->isSent;
  1712.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1713.         return $data->getPlain();
  1714.     }
  1715.     return $data;
  1716. }
  1717. /**
  1718. * Set isSent - Is Sent
  1719. * @param bool|null $isSent
  1720. * @return \Pimcore\Model\DataObject\EwsNotification
  1721. */
  1722. public function setIsSent(?bool $isSent)
  1723. {
  1724.     $this->isSent $isSent;
  1725.     return $this;
  1726. }
  1727. /**
  1728. * Get alertId - Alert Id
  1729. * @return string|null
  1730. */
  1731. public function getAlertId(): ?string
  1732. {
  1733.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1734.         $preValue $this->preGetValue("alertId");
  1735.         if ($preValue !== null) {
  1736.             return $preValue;
  1737.         }
  1738.     }
  1739.     $data $this->alertId;
  1740.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1741.         return $data->getPlain();
  1742.     }
  1743.     return $data;
  1744. }
  1745. /**
  1746. * Set alertId - Alert Id
  1747. * @param string|null $alertId
  1748. * @return \Pimcore\Model\DataObject\EwsNotification
  1749. */
  1750. public function setAlertId(?string $alertId)
  1751. {
  1752.     $this->alertId $alertId;
  1753.     return $this;
  1754. }
  1755. /**
  1756. * Get tweetID - Tweet I D
  1757. * @return string|null
  1758. */
  1759. public function getTweetID(): ?string
  1760. {
  1761.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1762.         $preValue $this->preGetValue("tweetID");
  1763.         if ($preValue !== null) {
  1764.             return $preValue;
  1765.         }
  1766.     }
  1767.     $data $this->tweetID;
  1768.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1769.         return $data->getPlain();
  1770.     }
  1771.     return $data;
  1772. }
  1773. /**
  1774. * Set tweetID - Tweet I D
  1775. * @param string|null $tweetID
  1776. * @return \Pimcore\Model\DataObject\EwsNotification
  1777. */
  1778. public function setTweetID(?string $tweetID)
  1779. {
  1780.     $this->tweetID $tweetID;
  1781.     return $this;
  1782. }
  1783. /**
  1784. * Get title - Title
  1785. * @return string|null
  1786. */
  1787. public function getTitle(): ?string
  1788. {
  1789.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1790.         $preValue $this->preGetValue("title");
  1791.         if ($preValue !== null) {
  1792.             return $preValue;
  1793.         }
  1794.     }
  1795.     $data $this->title;
  1796.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1797.         return $data->getPlain();
  1798.     }
  1799.     return $data;
  1800. }
  1801. /**
  1802. * Set title - Title
  1803. * @param string|null $title
  1804. * @return \Pimcore\Model\DataObject\EwsNotification
  1805. */
  1806. public function setTitle(?string $title)
  1807. {
  1808.     $this->title $title;
  1809.     return $this;
  1810. }
  1811. /**
  1812. * Get alertStatusCategory - Alert Status Category
  1813. * @return \Pimcore\Model\DataObject\AlertStatusCategory|null
  1814. */
  1815. public function getAlertStatusCategory(): ?\Pimcore\Model\Element\AbstractElement
  1816. {
  1817.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1818.         $preValue $this->preGetValue("alertStatusCategory");
  1819.         if ($preValue !== null) {
  1820.             return $preValue;
  1821.         }
  1822.     }
  1823.     $data $this->getClass()->getFieldDefinition("alertStatusCategory")->preGetData($this);
  1824.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1825.         return $data->getPlain();
  1826.     }
  1827.     return $data;
  1828. }
  1829. /**
  1830. * Set alertStatusCategory - Alert Status Category
  1831. * @param \Pimcore\Model\DataObject\AlertStatusCategory|null $alertStatusCategory
  1832. * @return \Pimcore\Model\DataObject\EwsNotification
  1833. */
  1834. public function setAlertStatusCategory(?\Pimcore\Model\Element\AbstractElement $alertStatusCategory)
  1835. {
  1836.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
  1837.     $fd $this->getClass()->getFieldDefinition("alertStatusCategory");
  1838.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  1839.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  1840.     $currentData $this->getAlertStatusCategory();
  1841.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  1842.     $isEqual $fd->isEqual($currentData$alertStatusCategory);
  1843.     if (!$isEqual) {
  1844.         $this->markFieldDirty("alertStatusCategory"true);
  1845.     }
  1846.     $this->alertStatusCategory $fd->preSetData($this$alertStatusCategory);
  1847.     return $this;
  1848. }
  1849. /**
  1850. * Get lastModifiedDate - Last Modified Date
  1851. * @return \Carbon\Carbon|null
  1852. */
  1853. public function getLastModifiedDate(): ?\Carbon\Carbon
  1854. {
  1855.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1856.         $preValue $this->preGetValue("lastModifiedDate");
  1857.         if ($preValue !== null) {
  1858.             return $preValue;
  1859.         }
  1860.     }
  1861.     $data $this->lastModifiedDate;
  1862.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1863.         return $data->getPlain();
  1864.     }
  1865.     return $data;
  1866. }
  1867. /**
  1868. * Set lastModifiedDate - Last Modified Date
  1869. * @param \Carbon\Carbon|null $lastModifiedDate
  1870. * @return \Pimcore\Model\DataObject\EwsNotification
  1871. */
  1872. public function setLastModifiedDate(?\Carbon\Carbon $lastModifiedDate)
  1873. {
  1874.     $this->lastModifiedDate $lastModifiedDate;
  1875.     return $this;
  1876. }
  1877. /**
  1878. * Get rawText - Raw Text
  1879. * @return string|null
  1880. */
  1881. public function getRawText(): ?string
  1882. {
  1883.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1884.         $preValue $this->preGetValue("rawText");
  1885.         if ($preValue !== null) {
  1886.             return $preValue;
  1887.         }
  1888.     }
  1889.     $data $this->rawText;
  1890.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1891.         return $data->getPlain();
  1892.     }
  1893.     return $data;
  1894. }
  1895. /**
  1896. * Set rawText - Raw Text
  1897. * @param string|null $rawText
  1898. * @return \Pimcore\Model\DataObject\EwsNotification
  1899. */
  1900. public function setRawText(?string $rawText)
  1901. {
  1902.     $this->rawText $rawText;
  1903.     return $this;
  1904. }
  1905. /**
  1906. * Get hash - Hash
  1907. * @return string|null
  1908. */
  1909. public function getHash(): ?string
  1910. {
  1911.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1912.         $preValue $this->preGetValue("hash");
  1913.         if ($preValue !== null) {
  1914.             return $preValue;
  1915.         }
  1916.     }
  1917.     $data $this->hash;
  1918.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1919.         return $data->getPlain();
  1920.     }
  1921.     return $data;
  1922. }
  1923. /**
  1924. * Set hash - Hash
  1925. * @param string|null $hash
  1926. * @return \Pimcore\Model\DataObject\EwsNotification
  1927. */
  1928. public function setHash(?string $hash)
  1929. {
  1930.     $this->hash $hash;
  1931.     return $this;
  1932. }
  1933. }