<?php
/**
* Inheritance: no
* Variants: no
*
* Fields Summary:
* - notifyAdmit [checkbox]
* - alertAction [manyToManyObjectRelation]
* - alertType [manyToOneRelation]
* - alertStatus [manyToOneRelation]
* - weatherPhenomenon [manyToOneRelation]
* - alertHazard [manyToManyObjectRelation]
* - region [manyToOneRelation]
* - governorate [manyToManyObjectRelation]
* - mapGovernorate [manyToManyObjectRelation]
* - ewsOtherLocations [manyToManyObjectRelation]
* - municipality [manyToManyObjectRelation]
* - center [manyToManyObjectRelation]
* - district [manyToManyObjectRelation]
* - otherLocations [manyToManyObjectRelation]
* - user [manyToOneRelation]
* - editor [manyToOneRelation]
* - coordinates [textarea]
* - addressComponents [fieldcollections]
* - startDate [datetime]
* - endDate [datetime]
* - alertEndDate [datetime]
* - localizedfields [localizedfields]
* -- message [textarea]
* -- xPost [textarea]
* -- ewsSearchId [input]
* -- otherLocation [input]
* - attachment [manyToOneRelation]
* - enableTwitterNotification [checkbox]
* - enableSMSNotification [checkbox]
* - enableEmailNotification [checkbox]
* - previewText [checkbox]
* - status [select]
* - guid [input]
* - twitterId [input]
* - twitterLog [textarea]
* - isEmailSent [checkbox]
* - xAttachment [manyToOneRelation]
* - polygon [manyToOneRelation]
* - isPolygon [checkbox]
* - notificationType [select]
* - polygonXAtachment [manyToOneRelation]
* - userGroup [manyToManyObjectRelation]
* - xHistoryAtachment [manyToOneRelation]
* - endXAttachment [manyToOneRelation]
* - alertPage [input]
* - isManned [checkbox]
* - isSent [checkbox]
* - alertId [input]
* - tweetID [input]
* - title [input]
* - alertStatusCategory [manyToOneRelation]
* - lastModifiedDate [datetime]
* - rawText [textarea]
* - hash [textarea]
*/
namespace Pimcore\Model\DataObject;
use Pimcore\Model\DataObject\Exception\InheritanceParentNotFoundException;
use Pimcore\Model\DataObject\PreGetValueHookInterface;
/**
* @method static \Pimcore\Model\DataObject\EwsNotification\Listing getList(array $config = [])
* @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByNotifyAdmit($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByAlertAction($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByAlertType($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByAlertStatus($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByWeatherPhenomenon($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByAlertHazard($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByRegion($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByGovernorate($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByMapGovernorate($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByEwsOtherLocations($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByMunicipality($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByCenter($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByDistrict($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByOtherLocations($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByUser($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByEditor($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByCoordinates($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByStartDate($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByEndDate($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByAlertEndDate($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByLocalizedfields($field, $value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByMessage($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByXPost($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByEwsSearchId($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByOtherLocation($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByAttachment($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByEnableTwitterNotification($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByEnableSMSNotification($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByEnableEmailNotification($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByPreviewText($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByStatus($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByGuid($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByTwitterId($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByTwitterLog($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByIsEmailSent($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByXAttachment($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByPolygon($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByIsPolygon($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByNotificationType($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByPolygonXAtachment($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByUserGroup($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByXHistoryAtachment($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByEndXAttachment($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByAlertPage($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByIsManned($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByIsSent($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByAlertId($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByTweetID($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByTitle($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByAlertStatusCategory($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByLastModifiedDate($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByRawText($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\EwsNotification\Listing|\Pimcore\Model\DataObject\EwsNotification|null getByHash($value, $limit = 0, $offset = 0, $objectTypes = null)
*/
class EwsNotification extends Concrete
{
protected $o_classId = "ews_notification";
protected $o_className = "EwsNotification";
protected $notifyAdmit;
protected $alertAction;
protected $alertType;
protected $alertStatus;
protected $weatherPhenomenon;
protected $alertHazard;
protected $region;
protected $governorate;
protected $mapGovernorate;
protected $ewsOtherLocations;
protected $municipality;
protected $center;
protected $district;
protected $otherLocations;
protected $user;
protected $editor;
protected $coordinates;
protected $addressComponents;
protected $startDate;
protected $endDate;
protected $alertEndDate;
protected $localizedfields;
protected $attachment;
protected $enableTwitterNotification;
protected $enableSMSNotification;
protected $enableEmailNotification;
protected $previewText;
protected $status;
protected $guid;
protected $twitterId;
protected $twitterLog;
protected $isEmailSent;
protected $xAttachment;
protected $polygon;
protected $isPolygon;
protected $notificationType;
protected $polygonXAtachment;
protected $userGroup;
protected $xHistoryAtachment;
protected $endXAttachment;
protected $alertPage;
protected $isManned;
protected $isSent;
protected $alertId;
protected $tweetID;
protected $title;
protected $alertStatusCategory;
protected $lastModifiedDate;
protected $rawText;
protected $hash;
/**
* @param array $values
* @return \Pimcore\Model\DataObject\EwsNotification
*/
public static function create($values = array()) {
$object = new static();
$object->setValues($values);
return $object;
}
/**
* Get notifyAdmit - Notify Admit
* @return bool|null
*/
public function getNotifyAdmit(): ?bool
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("notifyAdmit");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->notifyAdmit;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set notifyAdmit - Notify Admit
* @param bool|null $notifyAdmit
* @return \Pimcore\Model\DataObject\EwsNotification
*/
public function setNotifyAdmit(?bool $notifyAdmit)
{
$this->notifyAdmit = $notifyAdmit;
return $this;
}
/**
* Get alertAction - Alert Action
* @return \Pimcore\Model\DataObject\AlertAction[]
*/
public function getAlertAction(): array
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("alertAction");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("alertAction")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set alertAction - Alert Action
* @param \Pimcore\Model\DataObject\AlertAction[] $alertAction
* @return \Pimcore\Model\DataObject\EwsNotification
*/
public function setAlertAction(?array $alertAction)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
$fd = $this->getClass()->getFieldDefinition("alertAction");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getAlertAction();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $alertAction);
if (!$isEqual) {
$this->markFieldDirty("alertAction", true);
}
$this->alertAction = $fd->preSetData($this, $alertAction);
return $this;
}
/**
* Get alertType - Alert Type
* @return \Pimcore\Model\DataObject\AlertType|null
*/
public function getAlertType(): ?\Pimcore\Model\Element\AbstractElement
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("alertType");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("alertType")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set alertType - Alert Type
* @param \Pimcore\Model\DataObject\AlertType|null $alertType
* @return \Pimcore\Model\DataObject\EwsNotification
*/
public function setAlertType(?\Pimcore\Model\Element\AbstractElement $alertType)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
$fd = $this->getClass()->getFieldDefinition("alertType");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getAlertType();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $alertType);
if (!$isEqual) {
$this->markFieldDirty("alertType", true);
}
$this->alertType = $fd->preSetData($this, $alertType);
return $this;
}
/**
* Get alertStatus - Alert Status
* @return \Pimcore\Model\DataObject\AlertStatus|null
*/
public function getAlertStatus(): ?\Pimcore\Model\Element\AbstractElement
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("alertStatus");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("alertStatus")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set alertStatus - Alert Status
* @param \Pimcore\Model\DataObject\AlertStatus|null $alertStatus
* @return \Pimcore\Model\DataObject\EwsNotification
*/
public function setAlertStatus(?\Pimcore\Model\Element\AbstractElement $alertStatus)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
$fd = $this->getClass()->getFieldDefinition("alertStatus");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getAlertStatus();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $alertStatus);
if (!$isEqual) {
$this->markFieldDirty("alertStatus", true);
}
$this->alertStatus = $fd->preSetData($this, $alertStatus);
return $this;
}
/**
* Get weatherPhenomenon - Weather Phenomenon
* @return \Pimcore\Model\DataObject\PhenomenaList|null
*/
public function getWeatherPhenomenon(): ?\Pimcore\Model\Element\AbstractElement
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("weatherPhenomenon");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("weatherPhenomenon")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set weatherPhenomenon - Weather Phenomenon
* @param \Pimcore\Model\DataObject\PhenomenaList|null $weatherPhenomenon
* @return \Pimcore\Model\DataObject\EwsNotification
*/
public function setWeatherPhenomenon(?\Pimcore\Model\Element\AbstractElement $weatherPhenomenon)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
$fd = $this->getClass()->getFieldDefinition("weatherPhenomenon");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getWeatherPhenomenon();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $weatherPhenomenon);
if (!$isEqual) {
$this->markFieldDirty("weatherPhenomenon", true);
}
$this->weatherPhenomenon = $fd->preSetData($this, $weatherPhenomenon);
return $this;
}
/**
* Get alertHazard - Alert Hazard
* @return \Pimcore\Model\DataObject\AlertHazard[]
*/
public function getAlertHazard(): array
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("alertHazard");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("alertHazard")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set alertHazard - Alert Hazard
* @param \Pimcore\Model\DataObject\AlertHazard[] $alertHazard
* @return \Pimcore\Model\DataObject\EwsNotification
*/
public function setAlertHazard(?array $alertHazard)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
$fd = $this->getClass()->getFieldDefinition("alertHazard");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getAlertHazard();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $alertHazard);
if (!$isEqual) {
$this->markFieldDirty("alertHazard", true);
}
$this->alertHazard = $fd->preSetData($this, $alertHazard);
return $this;
}
/**
* Get region - Region
* @return \Pimcore\Model\DataObject\Region|null
*/
public function getRegion(): ?\Pimcore\Model\Element\AbstractElement
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("region");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("region")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set region - Region
* @param \Pimcore\Model\DataObject\Region|null $region
* @return \Pimcore\Model\DataObject\EwsNotification
*/
public function setRegion(?\Pimcore\Model\Element\AbstractElement $region)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
$fd = $this->getClass()->getFieldDefinition("region");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getRegion();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $region);
if (!$isEqual) {
$this->markFieldDirty("region", true);
}
$this->region = $fd->preSetData($this, $region);
return $this;
}
/**
* Get governorate - Governorate
* @return \Pimcore\Model\DataObject\Governorate[]
*/
public function getGovernorate(): array
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("governorate");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("governorate")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set governorate - Governorate
* @param \Pimcore\Model\DataObject\Governorate[] $governorate
* @return \Pimcore\Model\DataObject\EwsNotification
*/
public function setGovernorate(?array $governorate)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
$fd = $this->getClass()->getFieldDefinition("governorate");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getGovernorate();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $governorate);
if (!$isEqual) {
$this->markFieldDirty("governorate", true);
}
$this->governorate = $fd->preSetData($this, $governorate);
return $this;
}
/**
* Get mapGovernorate - Map Governorate
* @return \Pimcore\Model\DataObject\Governorate[]
*/
public function getMapGovernorate(): array
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("mapGovernorate");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("mapGovernorate")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set mapGovernorate - Map Governorate
* @param \Pimcore\Model\DataObject\Governorate[] $mapGovernorate
* @return \Pimcore\Model\DataObject\EwsNotification
*/
public function setMapGovernorate(?array $mapGovernorate)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
$fd = $this->getClass()->getFieldDefinition("mapGovernorate");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getMapGovernorate();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $mapGovernorate);
if (!$isEqual) {
$this->markFieldDirty("mapGovernorate", true);
}
$this->mapGovernorate = $fd->preSetData($this, $mapGovernorate);
return $this;
}
/**
* Get ewsOtherLocations - EWS Other Locations
* @return \Pimcore\Model\DataObject\EwsOtherLocation[]
*/
public function getEwsOtherLocations(): array
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("ewsOtherLocations");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("ewsOtherLocations")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set ewsOtherLocations - EWS Other Locations
* @param \Pimcore\Model\DataObject\EwsOtherLocation[] $ewsOtherLocations
* @return \Pimcore\Model\DataObject\EwsNotification
*/
public function setEwsOtherLocations(?array $ewsOtherLocations)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
$fd = $this->getClass()->getFieldDefinition("ewsOtherLocations");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getEwsOtherLocations();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $ewsOtherLocations);
if (!$isEqual) {
$this->markFieldDirty("ewsOtherLocations", true);
}
$this->ewsOtherLocations = $fd->preSetData($this, $ewsOtherLocations);
return $this;
}
/**
* Get municipality - Municipality
* @return \Pimcore\Model\DataObject\Municipality[]
*/
public function getMunicipality(): array
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("municipality");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("municipality")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set municipality - Municipality
* @param \Pimcore\Model\DataObject\Municipality[] $municipality
* @return \Pimcore\Model\DataObject\EwsNotification
*/
public function setMunicipality(?array $municipality)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
$fd = $this->getClass()->getFieldDefinition("municipality");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getMunicipality();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $municipality);
if (!$isEqual) {
$this->markFieldDirty("municipality", true);
}
$this->municipality = $fd->preSetData($this, $municipality);
return $this;
}
/**
* Get center - Center
* @return \Pimcore\Model\DataObject\Centers[]
*/
public function getCenter(): array
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("center");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("center")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set center - Center
* @param \Pimcore\Model\DataObject\Centers[] $center
* @return \Pimcore\Model\DataObject\EwsNotification
*/
public function setCenter(?array $center)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
$fd = $this->getClass()->getFieldDefinition("center");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getCenter();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $center);
if (!$isEqual) {
$this->markFieldDirty("center", true);
}
$this->center = $fd->preSetData($this, $center);
return $this;
}
/**
* Get district - District
* @return \Pimcore\Model\DataObject\District[]
*/
public function getDistrict(): array
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("district");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("district")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set district - District
* @param \Pimcore\Model\DataObject\District[] $district
* @return \Pimcore\Model\DataObject\EwsNotification
*/
public function setDistrict(?array $district)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
$fd = $this->getClass()->getFieldDefinition("district");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getDistrict();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $district);
if (!$isEqual) {
$this->markFieldDirty("district", true);
}
$this->district = $fd->preSetData($this, $district);
return $this;
}
/**
* Get otherLocations - Other Locations
* @return \Pimcore\Model\DataObject\OtherLocation[]
*/
public function getOtherLocations(): array
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("otherLocations");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("otherLocations")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set otherLocations - Other Locations
* @param \Pimcore\Model\DataObject\OtherLocation[] $otherLocations
* @return \Pimcore\Model\DataObject\EwsNotification
*/
public function setOtherLocations(?array $otherLocations)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
$fd = $this->getClass()->getFieldDefinition("otherLocations");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getOtherLocations();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $otherLocations);
if (!$isEqual) {
$this->markFieldDirty("otherLocations", true);
}
$this->otherLocations = $fd->preSetData($this, $otherLocations);
return $this;
}
/**
* Get user - User
* @return \Pimcore\Model\DataObject\Customer|null
*/
public function getUser(): ?\Pimcore\Model\Element\AbstractElement
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("user");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("user")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set user - User
* @param \Pimcore\Model\DataObject\Customer|null $user
* @return \Pimcore\Model\DataObject\EwsNotification
*/
public function setUser(?\Pimcore\Model\Element\AbstractElement $user)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
$fd = $this->getClass()->getFieldDefinition("user");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getUser();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $user);
if (!$isEqual) {
$this->markFieldDirty("user", true);
}
$this->user = $fd->preSetData($this, $user);
return $this;
}
/**
* Get editor - Editor
* @return \Pimcore\Model\DataObject\Customer|null
*/
public function getEditor(): ?\Pimcore\Model\Element\AbstractElement
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("editor");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("editor")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set editor - Editor
* @param \Pimcore\Model\DataObject\Customer|null $editor
* @return \Pimcore\Model\DataObject\EwsNotification
*/
public function setEditor(?\Pimcore\Model\Element\AbstractElement $editor)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
$fd = $this->getClass()->getFieldDefinition("editor");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getEditor();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $editor);
if (!$isEqual) {
$this->markFieldDirty("editor", true);
}
$this->editor = $fd->preSetData($this, $editor);
return $this;
}
/**
* Get coordinates - Coordinates
* @return string|null
*/
public function getCoordinates(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("coordinates");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->coordinates;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set coordinates - Coordinates
* @param string|null $coordinates
* @return \Pimcore\Model\DataObject\EwsNotification
*/
public function setCoordinates(?string $coordinates)
{
$this->coordinates = $coordinates;
return $this;
}
/**
* @return \Pimcore\Model\DataObject\Fieldcollection|null
*/
public function getAddressComponents(): ?\Pimcore\Model\DataObject\Fieldcollection
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("addressComponents");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("addressComponents")->preGetData($this);
return $data;
}
/**
* Set addressComponents - Address Components
* @param \Pimcore\Model\DataObject\Fieldcollection|null $addressComponents
* @return \Pimcore\Model\DataObject\EwsNotification
*/
public function setAddressComponents(?\Pimcore\Model\DataObject\Fieldcollection $addressComponents)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Fieldcollections $fd */
$fd = $this->getClass()->getFieldDefinition("addressComponents");
$this->addressComponents = $fd->preSetData($this, $addressComponents);
return $this;
}
/**
* Get startDate - Start Date
* @return \Carbon\Carbon|null
*/
public function getStartDate(): ?\Carbon\Carbon
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("startDate");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->startDate;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set startDate - Start Date
* @param \Carbon\Carbon|null $startDate
* @return \Pimcore\Model\DataObject\EwsNotification
*/
public function setStartDate(?\Carbon\Carbon $startDate)
{
$this->startDate = $startDate;
return $this;
}
/**
* Get endDate - End Date
* @return \Carbon\Carbon|null
*/
public function getEndDate(): ?\Carbon\Carbon
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("endDate");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->endDate;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set endDate - End Date
* @param \Carbon\Carbon|null $endDate
* @return \Pimcore\Model\DataObject\EwsNotification
*/
public function setEndDate(?\Carbon\Carbon $endDate)
{
$this->endDate = $endDate;
return $this;
}
/**
* Get alertEndDate - Alert End Date
* @return \Carbon\Carbon|null
*/
public function getAlertEndDate(): ?\Carbon\Carbon
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("alertEndDate");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->alertEndDate;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set alertEndDate - Alert End Date
* @param \Carbon\Carbon|null $alertEndDate
* @return \Pimcore\Model\DataObject\EwsNotification
*/
public function setAlertEndDate(?\Carbon\Carbon $alertEndDate)
{
$this->alertEndDate = $alertEndDate;
return $this;
}
/**
* Get localizedfields -
* @return \Pimcore\Model\DataObject\Localizedfield|null
*/
public function getLocalizedfields(): ?\Pimcore\Model\DataObject\Localizedfield
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("localizedfields");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("localizedfields")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get message - Message
* @return string|null
*/
public function getMessage($language = null): ?string
{
$data = $this->getLocalizedfields()->getLocalizedValue("message", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("message");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get xPost - X Post
* @return string|null
*/
public function getXPost($language = null): ?string
{
$data = $this->getLocalizedfields()->getLocalizedValue("xPost", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("xPost");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get ewsSearchId - Ews Search Id
* @return string|null
*/
public function getEwsSearchId($language = null): ?string
{
$data = $this->getLocalizedfields()->getLocalizedValue("ewsSearchId", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("ewsSearchId");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Get otherLocation - Other Location
* @return string|null
*/
public function getOtherLocation($language = null): ?string
{
$data = $this->getLocalizedfields()->getLocalizedValue("otherLocation", $language);
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("otherLocation");
if ($preValue !== null) {
return $preValue;
}
}
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set localizedfields -
* @param \Pimcore\Model\DataObject\Localizedfield|null $localizedfields
* @return \Pimcore\Model\DataObject\EwsNotification
*/
public function setLocalizedfields(?\Pimcore\Model\DataObject\Localizedfield $localizedfields)
{
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getLocalizedfields();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$this->markFieldDirty("localizedfields", true);
$this->localizedfields = $localizedfields;
return $this;
}
/**
* Set message - Message
* @param string|null $message
* @return \Pimcore\Model\DataObject\EwsNotification
*/
public function setMessage (?string $message, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("message", $message, $language, !$isEqual);
return $this;
}
/**
* Set xPost - X Post
* @param string|null $xPost
* @return \Pimcore\Model\DataObject\EwsNotification
*/
public function setXPost (?string $xPost, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("xPost", $xPost, $language, !$isEqual);
return $this;
}
/**
* Set ewsSearchId - Ews Search Id
* @param string|null $ewsSearchId
* @return \Pimcore\Model\DataObject\EwsNotification
*/
public function setEwsSearchId (?string $ewsSearchId, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("ewsSearchId", $ewsSearchId, $language, !$isEqual);
return $this;
}
/**
* Set otherLocation - Other Location
* @param string|null $otherLocation
* @return \Pimcore\Model\DataObject\EwsNotification
*/
public function setOtherLocation (?string $otherLocation, $language = null)
{
$isEqual = false;
$this->getLocalizedfields()->setLocalizedValue("otherLocation", $otherLocation, $language, !$isEqual);
return $this;
}
/**
* Get attachment - Attachment
* @return \Pimcore\Model\Asset|null
*/
public function getAttachment(): ?\Pimcore\Model\Element\AbstractElement
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("attachment");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("attachment")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set attachment - Attachment
* @param \Pimcore\Model\Asset|null $attachment
* @return \Pimcore\Model\DataObject\EwsNotification
*/
public function setAttachment(?\Pimcore\Model\Element\AbstractElement $attachment)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
$fd = $this->getClass()->getFieldDefinition("attachment");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getAttachment();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $attachment);
if (!$isEqual) {
$this->markFieldDirty("attachment", true);
}
$this->attachment = $fd->preSetData($this, $attachment);
return $this;
}
/**
* Get enableTwitterNotification - Enable Twitter Notification
* @return bool|null
*/
public function getEnableTwitterNotification(): ?bool
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("enableTwitterNotification");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->enableTwitterNotification;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set enableTwitterNotification - Enable Twitter Notification
* @param bool|null $enableTwitterNotification
* @return \Pimcore\Model\DataObject\EwsNotification
*/
public function setEnableTwitterNotification(?bool $enableTwitterNotification)
{
$this->enableTwitterNotification = $enableTwitterNotification;
return $this;
}
/**
* Get enableSMSNotification - Enable SMS Notification
* @return bool|null
*/
public function getEnableSMSNotification(): ?bool
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("enableSMSNotification");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->enableSMSNotification;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set enableSMSNotification - Enable SMS Notification
* @param bool|null $enableSMSNotification
* @return \Pimcore\Model\DataObject\EwsNotification
*/
public function setEnableSMSNotification(?bool $enableSMSNotification)
{
$this->enableSMSNotification = $enableSMSNotification;
return $this;
}
/**
* Get enableEmailNotification - Enable Email Notification
* @return bool|null
*/
public function getEnableEmailNotification(): ?bool
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("enableEmailNotification");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->enableEmailNotification;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set enableEmailNotification - Enable Email Notification
* @param bool|null $enableEmailNotification
* @return \Pimcore\Model\DataObject\EwsNotification
*/
public function setEnableEmailNotification(?bool $enableEmailNotification)
{
$this->enableEmailNotification = $enableEmailNotification;
return $this;
}
/**
* Get previewText - Preview Text
* @return bool|null
*/
public function getPreviewText(): ?bool
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("previewText");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->previewText;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set previewText - Preview Text
* @param bool|null $previewText
* @return \Pimcore\Model\DataObject\EwsNotification
*/
public function setPreviewText(?bool $previewText)
{
$this->previewText = $previewText;
return $this;
}
/**
* Get status - Status
* @return string|null
*/
public function getStatus(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("status");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->status;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set status - Status
* @param string|null $status
* @return \Pimcore\Model\DataObject\EwsNotification
*/
public function setStatus(?string $status)
{
$this->status = $status;
return $this;
}
/**
* Get guid - Guid
* @return string|null
*/
public function getGuid(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("guid");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->guid;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set guid - Guid
* @param string|null $guid
* @return \Pimcore\Model\DataObject\EwsNotification
*/
public function setGuid(?string $guid)
{
$this->guid = $guid;
return $this;
}
/**
* Get twitterId - Twitter Id
* @return string|null
*/
public function getTwitterId(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("twitterId");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->twitterId;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set twitterId - Twitter Id
* @param string|null $twitterId
* @return \Pimcore\Model\DataObject\EwsNotification
*/
public function setTwitterId(?string $twitterId)
{
$this->twitterId = $twitterId;
return $this;
}
/**
* Get twitterLog - Twitter Log
* @return string|null
*/
public function getTwitterLog(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("twitterLog");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->twitterLog;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set twitterLog - Twitter Log
* @param string|null $twitterLog
* @return \Pimcore\Model\DataObject\EwsNotification
*/
public function setTwitterLog(?string $twitterLog)
{
$this->twitterLog = $twitterLog;
return $this;
}
/**
* Get isEmailSent - Is Email Sent
* @return bool|null
*/
public function getIsEmailSent(): ?bool
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("isEmailSent");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->isEmailSent;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set isEmailSent - Is Email Sent
* @param bool|null $isEmailSent
* @return \Pimcore\Model\DataObject\EwsNotification
*/
public function setIsEmailSent(?bool $isEmailSent)
{
$this->isEmailSent = $isEmailSent;
return $this;
}
/**
* Get xAttachment - X Attachment
* @return \Pimcore\Model\Asset|null
*/
public function getXAttachment(): ?\Pimcore\Model\Element\AbstractElement
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("xAttachment");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("xAttachment")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set xAttachment - X Attachment
* @param \Pimcore\Model\Asset|null $xAttachment
* @return \Pimcore\Model\DataObject\EwsNotification
*/
public function setXAttachment(?\Pimcore\Model\Element\AbstractElement $xAttachment)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
$fd = $this->getClass()->getFieldDefinition("xAttachment");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getXAttachment();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $xAttachment);
if (!$isEqual) {
$this->markFieldDirty("xAttachment", true);
}
$this->xAttachment = $fd->preSetData($this, $xAttachment);
return $this;
}
/**
* Get polygon - Polygon
* @return \Pimcore\Model\DataObject\EwsPolygon|null
*/
public function getPolygon(): ?\Pimcore\Model\Element\AbstractElement
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("polygon");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("polygon")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set polygon - Polygon
* @param \Pimcore\Model\DataObject\EwsPolygon|null $polygon
* @return \Pimcore\Model\DataObject\EwsNotification
*/
public function setPolygon(?\Pimcore\Model\Element\AbstractElement $polygon)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
$fd = $this->getClass()->getFieldDefinition("polygon");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getPolygon();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $polygon);
if (!$isEqual) {
$this->markFieldDirty("polygon", true);
}
$this->polygon = $fd->preSetData($this, $polygon);
return $this;
}
/**
* Get isPolygon - Is Polygon
* @return bool|null
*/
public function getIsPolygon(): ?bool
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("isPolygon");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->isPolygon;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set isPolygon - Is Polygon
* @param bool|null $isPolygon
* @return \Pimcore\Model\DataObject\EwsNotification
*/
public function setIsPolygon(?bool $isPolygon)
{
$this->isPolygon = $isPolygon;
return $this;
}
/**
* Get notificationType - Notification Type
* @return string|null
*/
public function getNotificationType(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("notificationType");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->notificationType;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set notificationType - Notification Type
* @param string|null $notificationType
* @return \Pimcore\Model\DataObject\EwsNotification
*/
public function setNotificationType(?string $notificationType)
{
$this->notificationType = $notificationType;
return $this;
}
/**
* Get polygonXAtachment - Polygon X Atachment
* @return \Pimcore\Model\Asset|null
*/
public function getPolygonXAtachment(): ?\Pimcore\Model\Element\AbstractElement
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("polygonXAtachment");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("polygonXAtachment")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set polygonXAtachment - Polygon X Atachment
* @param \Pimcore\Model\Asset|null $polygonXAtachment
* @return \Pimcore\Model\DataObject\EwsNotification
*/
public function setPolygonXAtachment(?\Pimcore\Model\Element\AbstractElement $polygonXAtachment)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
$fd = $this->getClass()->getFieldDefinition("polygonXAtachment");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getPolygonXAtachment();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $polygonXAtachment);
if (!$isEqual) {
$this->markFieldDirty("polygonXAtachment", true);
}
$this->polygonXAtachment = $fd->preSetData($this, $polygonXAtachment);
return $this;
}
/**
* Get userGroup - User Group
* @return \Pimcore\Model\DataObject\EwsAndReportUserGroup[]
*/
public function getUserGroup(): array
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("userGroup");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("userGroup")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set userGroup - User Group
* @param \Pimcore\Model\DataObject\EwsAndReportUserGroup[] $userGroup
* @return \Pimcore\Model\DataObject\EwsNotification
*/
public function setUserGroup(?array $userGroup)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
$fd = $this->getClass()->getFieldDefinition("userGroup");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getUserGroup();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $userGroup);
if (!$isEqual) {
$this->markFieldDirty("userGroup", true);
}
$this->userGroup = $fd->preSetData($this, $userGroup);
return $this;
}
/**
* Get xHistoryAtachment - X History Attachment
* @return \Pimcore\Model\Asset\Image|null
*/
public function getXHistoryAtachment(): ?\Pimcore\Model\Element\AbstractElement
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("xHistoryAtachment");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("xHistoryAtachment")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set xHistoryAtachment - X History Attachment
* @param \Pimcore\Model\Asset\Image|null $xHistoryAtachment
* @return \Pimcore\Model\DataObject\EwsNotification
*/
public function setXHistoryAtachment(?\Pimcore\Model\Element\AbstractElement $xHistoryAtachment)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
$fd = $this->getClass()->getFieldDefinition("xHistoryAtachment");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getXHistoryAtachment();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $xHistoryAtachment);
if (!$isEqual) {
$this->markFieldDirty("xHistoryAtachment", true);
}
$this->xHistoryAtachment = $fd->preSetData($this, $xHistoryAtachment);
return $this;
}
/**
* Get endXAttachment - End X Attachment
* @return \Pimcore\Model\Asset\Image|null
*/
public function getEndXAttachment(): ?\Pimcore\Model\Element\AbstractElement
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("endXAttachment");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("endXAttachment")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set endXAttachment - End X Attachment
* @param \Pimcore\Model\Asset\Image|null $endXAttachment
* @return \Pimcore\Model\DataObject\EwsNotification
*/
public function setEndXAttachment(?\Pimcore\Model\Element\AbstractElement $endXAttachment)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
$fd = $this->getClass()->getFieldDefinition("endXAttachment");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getEndXAttachment();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $endXAttachment);
if (!$isEqual) {
$this->markFieldDirty("endXAttachment", true);
}
$this->endXAttachment = $fd->preSetData($this, $endXAttachment);
return $this;
}
/**
* Get alertPage - Alert Page
* @return string|null
*/
public function getAlertPage(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("alertPage");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->alertPage;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set alertPage - Alert Page
* @param string|null $alertPage
* @return \Pimcore\Model\DataObject\EwsNotification
*/
public function setAlertPage(?string $alertPage)
{
$this->alertPage = $alertPage;
return $this;
}
/**
* Get isManned - Is Manned
* @return bool|null
*/
public function getIsManned(): ?bool
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("isManned");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->isManned;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set isManned - Is Manned
* @param bool|null $isManned
* @return \Pimcore\Model\DataObject\EwsNotification
*/
public function setIsManned(?bool $isManned)
{
$this->isManned = $isManned;
return $this;
}
/**
* Get isSent - Is Sent
* @return bool|null
*/
public function getIsSent(): ?bool
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("isSent");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->isSent;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set isSent - Is Sent
* @param bool|null $isSent
* @return \Pimcore\Model\DataObject\EwsNotification
*/
public function setIsSent(?bool $isSent)
{
$this->isSent = $isSent;
return $this;
}
/**
* Get alertId - Alert Id
* @return string|null
*/
public function getAlertId(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("alertId");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->alertId;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set alertId - Alert Id
* @param string|null $alertId
* @return \Pimcore\Model\DataObject\EwsNotification
*/
public function setAlertId(?string $alertId)
{
$this->alertId = $alertId;
return $this;
}
/**
* Get tweetID - Tweet I D
* @return string|null
*/
public function getTweetID(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("tweetID");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->tweetID;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set tweetID - Tweet I D
* @param string|null $tweetID
* @return \Pimcore\Model\DataObject\EwsNotification
*/
public function setTweetID(?string $tweetID)
{
$this->tweetID = $tweetID;
return $this;
}
/**
* Get title - Title
* @return string|null
*/
public function getTitle(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("title");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->title;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set title - Title
* @param string|null $title
* @return \Pimcore\Model\DataObject\EwsNotification
*/
public function setTitle(?string $title)
{
$this->title = $title;
return $this;
}
/**
* Get alertStatusCategory - Alert Status Category
* @return \Pimcore\Model\DataObject\AlertStatusCategory|null
*/
public function getAlertStatusCategory(): ?\Pimcore\Model\Element\AbstractElement
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("alertStatusCategory");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("alertStatusCategory")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set alertStatusCategory - Alert Status Category
* @param \Pimcore\Model\DataObject\AlertStatusCategory|null $alertStatusCategory
* @return \Pimcore\Model\DataObject\EwsNotification
*/
public function setAlertStatusCategory(?\Pimcore\Model\Element\AbstractElement $alertStatusCategory)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
$fd = $this->getClass()->getFieldDefinition("alertStatusCategory");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getAlertStatusCategory();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $alertStatusCategory);
if (!$isEqual) {
$this->markFieldDirty("alertStatusCategory", true);
}
$this->alertStatusCategory = $fd->preSetData($this, $alertStatusCategory);
return $this;
}
/**
* Get lastModifiedDate - Last Modified Date
* @return \Carbon\Carbon|null
*/
public function getLastModifiedDate(): ?\Carbon\Carbon
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("lastModifiedDate");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->lastModifiedDate;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set lastModifiedDate - Last Modified Date
* @param \Carbon\Carbon|null $lastModifiedDate
* @return \Pimcore\Model\DataObject\EwsNotification
*/
public function setLastModifiedDate(?\Carbon\Carbon $lastModifiedDate)
{
$this->lastModifiedDate = $lastModifiedDate;
return $this;
}
/**
* Get rawText - Raw Text
* @return string|null
*/
public function getRawText(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("rawText");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->rawText;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set rawText - Raw Text
* @param string|null $rawText
* @return \Pimcore\Model\DataObject\EwsNotification
*/
public function setRawText(?string $rawText)
{
$this->rawText = $rawText;
return $this;
}
/**
* Get hash - Hash
* @return string|null
*/
public function getHash(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("hash");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->hash;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set hash - Hash
* @param string|null $hash
* @return \Pimcore\Model\DataObject\EwsNotification
*/
public function setHash(?string $hash)
{
$this->hash = $hash;
return $this;
}
}