var/classes/DataObject/Report.php line 920

Open in your IDE?
  1. <?php
  2. /**
  3.  * Inheritance: no
  4.  * Variants: no
  5.  *
  6.  * Fields Summary:
  7.  * - fileType [select]
  8.  * - searchData [textarea]
  9.  * - localizedfields [localizedfields]
  10.  * -- reportTitle [textarea]
  11.  * -- description [textarea]
  12.  * -- stateOfTheSea [textarea]
  13.  * -- waveHeight [textarea]
  14.  * -- surfaceWind [textarea]
  15.  * -- reportDisclaimer [textarea]
  16.  * -- additionalNote [textarea]
  17.  * - twitterDescription [input]
  18.  * - startDate [datetime]
  19.  * - EndDate [datetime]
  20.  * - jsonData [textarea]
  21.  * - createdOn [datetime]
  22.  * - isHistorical [checkbox]
  23.  * - isMannedReport [checkbox]
  24.  * - isAWSReport [checkbox]
  25.  * - lang [input]
  26.  * - softDelete [checkbox]
  27.  * - createdBy [manyToOneRelation]
  28.  * - reportType [manyToOneRelation]
  29.  * - Asset [manyToOneRelation]
  30.  * - assetAr [manyToOneRelation]
  31.  * - organization [manyToManyObjectRelation]
  32.  * - forPublicPortal [checkbox]
  33.  * - forAjwaaPortal [checkbox]
  34.  * - sendEmail [checkbox]
  35.  * - forEmailChannel [checkbox]
  36.  * - forTwitterChannel [checkbox]
  37.  * - showPublicDescription [checkbox]
  38.  * - emails [textarea]
  39.  * - isGovernorates [checkbox]
  40.  * - publishOnPdf [checkbox]
  41.  * - isSchedule [checkbox]
  42.  * - scheduleDate [datetime]
  43.  */
  44. namespace Pimcore\Model\DataObject;
  45. use Pimcore\Model\DataObject\Exception\InheritanceParentNotFoundException;
  46. use Pimcore\Model\DataObject\PreGetValueHookInterface;
  47. /**
  48. * @method static \Pimcore\Model\DataObject\Report\Listing getList(array $config = [])
  49. * @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByFileType($value, $limit = 0, $offset = 0, $objectTypes = null)
  50. * @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getBySearchData($value, $limit = 0, $offset = 0, $objectTypes = null)
  51. * @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByLocalizedfields($field, $value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
  52. * @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByReportTitle($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
  53. * @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByDescription($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
  54. * @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByStateOfTheSea($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
  55. * @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByWaveHeight($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
  56. * @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getBySurfaceWind($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
  57. * @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByReportDisclaimer($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
  58. * @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByAdditionalNote($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
  59. * @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByTwitterDescription($value, $limit = 0, $offset = 0, $objectTypes = null)
  60. * @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByStartDate($value, $limit = 0, $offset = 0, $objectTypes = null)
  61. * @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByEndDate($value, $limit = 0, $offset = 0, $objectTypes = null)
  62. * @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByJsonData($value, $limit = 0, $offset = 0, $objectTypes = null)
  63. * @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByCreatedOn($value, $limit = 0, $offset = 0, $objectTypes = null)
  64. * @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByIsHistorical($value, $limit = 0, $offset = 0, $objectTypes = null)
  65. * @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByIsMannedReport($value, $limit = 0, $offset = 0, $objectTypes = null)
  66. * @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByIsAWSReport($value, $limit = 0, $offset = 0, $objectTypes = null)
  67. * @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByLang($value, $limit = 0, $offset = 0, $objectTypes = null)
  68. * @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getBySoftDelete($value, $limit = 0, $offset = 0, $objectTypes = null)
  69. * @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByCreatedBy($value, $limit = 0, $offset = 0, $objectTypes = null)
  70. * @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByReportType($value, $limit = 0, $offset = 0, $objectTypes = null)
  71. * @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByAsset($value, $limit = 0, $offset = 0, $objectTypes = null)
  72. * @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByAssetAr($value, $limit = 0, $offset = 0, $objectTypes = null)
  73. * @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByOrganization($value, $limit = 0, $offset = 0, $objectTypes = null)
  74. * @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByForPublicPortal($value, $limit = 0, $offset = 0, $objectTypes = null)
  75. * @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByForAjwaaPortal($value, $limit = 0, $offset = 0, $objectTypes = null)
  76. * @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getBySendEmail($value, $limit = 0, $offset = 0, $objectTypes = null)
  77. * @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByForEmailChannel($value, $limit = 0, $offset = 0, $objectTypes = null)
  78. * @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByForTwitterChannel($value, $limit = 0, $offset = 0, $objectTypes = null)
  79. * @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByShowPublicDescription($value, $limit = 0, $offset = 0, $objectTypes = null)
  80. * @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByEmails($value, $limit = 0, $offset = 0, $objectTypes = null)
  81. * @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByIsGovernorates($value, $limit = 0, $offset = 0, $objectTypes = null)
  82. * @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByPublishOnPdf($value, $limit = 0, $offset = 0, $objectTypes = null)
  83. * @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByIsSchedule($value, $limit = 0, $offset = 0, $objectTypes = null)
  84. * @method static \Pimcore\Model\DataObject\Report\Listing|\Pimcore\Model\DataObject\Report|null getByScheduleDate($value, $limit = 0, $offset = 0, $objectTypes = null)
  85. */
  86. class Report extends Concrete
  87. {
  88. protected $o_classId "Report";
  89. protected $o_className "Report";
  90. protected $fileType;
  91. protected $searchData;
  92. protected $localizedfields;
  93. protected $twitterDescription;
  94. protected $startDate;
  95. protected $EndDate;
  96. protected $jsonData;
  97. protected $createdOn;
  98. protected $isHistorical;
  99. protected $isMannedReport;
  100. protected $isAWSReport;
  101. protected $lang;
  102. protected $softDelete;
  103. protected $createdBy;
  104. protected $reportType;
  105. protected $Asset;
  106. protected $assetAr;
  107. protected $organization;
  108. protected $forPublicPortal;
  109. protected $forAjwaaPortal;
  110. protected $sendEmail;
  111. protected $forEmailChannel;
  112. protected $forTwitterChannel;
  113. protected $showPublicDescription;
  114. protected $emails;
  115. protected $isGovernorates;
  116. protected $publishOnPdf;
  117. protected $isSchedule;
  118. protected $scheduleDate;
  119. /**
  120. * @param array $values
  121. * @return \Pimcore\Model\DataObject\Report
  122. */
  123. public static function create($values = array()) {
  124.     $object = new static();
  125.     $object->setValues($values);
  126.     return $object;
  127. }
  128. /**
  129. * Get fileType - File Type
  130. * @return string|null
  131. */
  132. public function getFileType(): ?string
  133. {
  134.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  135.         $preValue $this->preGetValue("fileType");
  136.         if ($preValue !== null) {
  137.             return $preValue;
  138.         }
  139.     }
  140.     $data $this->fileType;
  141.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  142.         return $data->getPlain();
  143.     }
  144.     return $data;
  145. }
  146. /**
  147. * Set fileType - File Type
  148. * @param string|null $fileType
  149. * @return \Pimcore\Model\DataObject\Report
  150. */
  151. public function setFileType(?string $fileType)
  152. {
  153.     $this->fileType $fileType;
  154.     return $this;
  155. }
  156. /**
  157. * Get searchData - Search Data
  158. * @return string|null
  159. */
  160. public function getSearchData(): ?string
  161. {
  162.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  163.         $preValue $this->preGetValue("searchData");
  164.         if ($preValue !== null) {
  165.             return $preValue;
  166.         }
  167.     }
  168.     $data $this->searchData;
  169.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  170.         return $data->getPlain();
  171.     }
  172.     return $data;
  173. }
  174. /**
  175. * Set searchData - Search Data
  176. * @param string|null $searchData
  177. * @return \Pimcore\Model\DataObject\Report
  178. */
  179. public function setSearchData(?string $searchData)
  180. {
  181.     $this->searchData $searchData;
  182.     return $this;
  183. }
  184. /**
  185. * Get localizedfields - 
  186. * @return \Pimcore\Model\DataObject\Localizedfield|null
  187. */
  188. public function getLocalizedfields(): ?\Pimcore\Model\DataObject\Localizedfield
  189. {
  190.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  191.         $preValue $this->preGetValue("localizedfields");
  192.         if ($preValue !== null) {
  193.             return $preValue;
  194.         }
  195.     }
  196.     $data $this->getClass()->getFieldDefinition("localizedfields")->preGetData($this);
  197.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  198.         return $data->getPlain();
  199.     }
  200.     return $data;
  201. }
  202. /**
  203. * Get reportTitle - Report Title
  204. * @return string|null
  205. */
  206. public function getReportTitle($language null): ?string
  207. {
  208.     $data $this->getLocalizedfields()->getLocalizedValue("reportTitle"$language);
  209.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  210.         $preValue $this->preGetValue("reportTitle");
  211.         if ($preValue !== null) {
  212.             return $preValue;
  213.         }
  214.     }
  215.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  216.         return $data->getPlain();
  217.     }
  218.     return $data;
  219. }
  220. /**
  221. * Get description - Description
  222. * @return string|null
  223. */
  224. public function getDescription($language null): ?string
  225. {
  226.     $data $this->getLocalizedfields()->getLocalizedValue("description"$language);
  227.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  228.         $preValue $this->preGetValue("description");
  229.         if ($preValue !== null) {
  230.             return $preValue;
  231.         }
  232.     }
  233.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  234.         return $data->getPlain();
  235.     }
  236.     return $data;
  237. }
  238. /**
  239. * Get stateOfTheSea - State Of The Sea
  240. * @return string|null
  241. */
  242. public function getStateOfTheSea($language null): ?string
  243. {
  244.     $data $this->getLocalizedfields()->getLocalizedValue("stateOfTheSea"$language);
  245.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  246.         $preValue $this->preGetValue("stateOfTheSea");
  247.         if ($preValue !== null) {
  248.             return $preValue;
  249.         }
  250.     }
  251.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  252.         return $data->getPlain();
  253.     }
  254.     return $data;
  255. }
  256. /**
  257. * Get waveHeight - Wave Height
  258. * @return string|null
  259. */
  260. public function getWaveHeight($language null): ?string
  261. {
  262.     $data $this->getLocalizedfields()->getLocalizedValue("waveHeight"$language);
  263.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  264.         $preValue $this->preGetValue("waveHeight");
  265.         if ($preValue !== null) {
  266.             return $preValue;
  267.         }
  268.     }
  269.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  270.         return $data->getPlain();
  271.     }
  272.     return $data;
  273. }
  274. /**
  275. * Get surfaceWind - Surface Wind
  276. * @return string|null
  277. */
  278. public function getSurfaceWind($language null): ?string
  279. {
  280.     $data $this->getLocalizedfields()->getLocalizedValue("surfaceWind"$language);
  281.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  282.         $preValue $this->preGetValue("surfaceWind");
  283.         if ($preValue !== null) {
  284.             return $preValue;
  285.         }
  286.     }
  287.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  288.         return $data->getPlain();
  289.     }
  290.     return $data;
  291. }
  292. /**
  293. * Get reportDisclaimer - Report Disclaimer
  294. * @return string|null
  295. */
  296. public function getReportDisclaimer($language null): ?string
  297. {
  298.     $data $this->getLocalizedfields()->getLocalizedValue("reportDisclaimer"$language);
  299.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  300.         $preValue $this->preGetValue("reportDisclaimer");
  301.         if ($preValue !== null) {
  302.             return $preValue;
  303.         }
  304.     }
  305.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  306.         return $data->getPlain();
  307.     }
  308.     return $data;
  309. }
  310. /**
  311. * Get additionalNote - Additional Note
  312. * @return string|null
  313. */
  314. public function getAdditionalNote($language null): ?string
  315. {
  316.     $data $this->getLocalizedfields()->getLocalizedValue("additionalNote"$language);
  317.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  318.         $preValue $this->preGetValue("additionalNote");
  319.         if ($preValue !== null) {
  320.             return $preValue;
  321.         }
  322.     }
  323.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  324.         return $data->getPlain();
  325.     }
  326.     return $data;
  327. }
  328. /**
  329. * Set localizedfields - 
  330. * @param \Pimcore\Model\DataObject\Localizedfield|null $localizedfields
  331. * @return \Pimcore\Model\DataObject\Report
  332. */
  333. public function setLocalizedfields(?\Pimcore\Model\DataObject\Localizedfield $localizedfields)
  334. {
  335.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  336.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  337.     $currentData $this->getLocalizedfields();
  338.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  339.     $this->markFieldDirty("localizedfields"true);
  340.     $this->localizedfields $localizedfields;
  341.     return $this;
  342. }
  343. /**
  344. * Set reportTitle - Report Title
  345. * @param string|null $reportTitle
  346. * @return \Pimcore\Model\DataObject\Report
  347. */
  348. public function setReportTitle (?string $reportTitle$language null)
  349. {
  350.     $isEqual false;
  351.     $this->getLocalizedfields()->setLocalizedValue("reportTitle"$reportTitle$language, !$isEqual);
  352.     return $this;
  353. }
  354. /**
  355. * Set description - Description
  356. * @param string|null $description
  357. * @return \Pimcore\Model\DataObject\Report
  358. */
  359. public function setDescription (?string $description$language null)
  360. {
  361.     $isEqual false;
  362.     $this->getLocalizedfields()->setLocalizedValue("description"$description$language, !$isEqual);
  363.     return $this;
  364. }
  365. /**
  366. * Set stateOfTheSea - State Of The Sea
  367. * @param string|null $stateOfTheSea
  368. * @return \Pimcore\Model\DataObject\Report
  369. */
  370. public function setStateOfTheSea (?string $stateOfTheSea$language null)
  371. {
  372.     $isEqual false;
  373.     $this->getLocalizedfields()->setLocalizedValue("stateOfTheSea"$stateOfTheSea$language, !$isEqual);
  374.     return $this;
  375. }
  376. /**
  377. * Set waveHeight - Wave Height
  378. * @param string|null $waveHeight
  379. * @return \Pimcore\Model\DataObject\Report
  380. */
  381. public function setWaveHeight (?string $waveHeight$language null)
  382. {
  383.     $isEqual false;
  384.     $this->getLocalizedfields()->setLocalizedValue("waveHeight"$waveHeight$language, !$isEqual);
  385.     return $this;
  386. }
  387. /**
  388. * Set surfaceWind - Surface Wind
  389. * @param string|null $surfaceWind
  390. * @return \Pimcore\Model\DataObject\Report
  391. */
  392. public function setSurfaceWind (?string $surfaceWind$language null)
  393. {
  394.     $isEqual false;
  395.     $this->getLocalizedfields()->setLocalizedValue("surfaceWind"$surfaceWind$language, !$isEqual);
  396.     return $this;
  397. }
  398. /**
  399. * Set reportDisclaimer - Report Disclaimer
  400. * @param string|null $reportDisclaimer
  401. * @return \Pimcore\Model\DataObject\Report
  402. */
  403. public function setReportDisclaimer (?string $reportDisclaimer$language null)
  404. {
  405.     $isEqual false;
  406.     $this->getLocalizedfields()->setLocalizedValue("reportDisclaimer"$reportDisclaimer$language, !$isEqual);
  407.     return $this;
  408. }
  409. /**
  410. * Set additionalNote - Additional Note
  411. * @param string|null $additionalNote
  412. * @return \Pimcore\Model\DataObject\Report
  413. */
  414. public function setAdditionalNote (?string $additionalNote$language null)
  415. {
  416.     $isEqual false;
  417.     $this->getLocalizedfields()->setLocalizedValue("additionalNote"$additionalNote$language, !$isEqual);
  418.     return $this;
  419. }
  420. /**
  421. * Get twitterDescription - Twitter Description
  422. * @return string|null
  423. */
  424. public function getTwitterDescription(): ?string
  425. {
  426.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  427.         $preValue $this->preGetValue("twitterDescription");
  428.         if ($preValue !== null) {
  429.             return $preValue;
  430.         }
  431.     }
  432.     $data $this->twitterDescription;
  433.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  434.         return $data->getPlain();
  435.     }
  436.     return $data;
  437. }
  438. /**
  439. * Set twitterDescription - Twitter Description
  440. * @param string|null $twitterDescription
  441. * @return \Pimcore\Model\DataObject\Report
  442. */
  443. public function setTwitterDescription(?string $twitterDescription)
  444. {
  445.     $this->twitterDescription $twitterDescription;
  446.     return $this;
  447. }
  448. /**
  449. * Get startDate - Start Date
  450. * @return \Carbon\Carbon|null
  451. */
  452. public function getStartDate(): ?\Carbon\Carbon
  453. {
  454.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  455.         $preValue $this->preGetValue("startDate");
  456.         if ($preValue !== null) {
  457.             return $preValue;
  458.         }
  459.     }
  460.     $data $this->startDate;
  461.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  462.         return $data->getPlain();
  463.     }
  464.     return $data;
  465. }
  466. /**
  467. * Set startDate - Start Date
  468. * @param \Carbon\Carbon|null $startDate
  469. * @return \Pimcore\Model\DataObject\Report
  470. */
  471. public function setStartDate(?\Carbon\Carbon $startDate)
  472. {
  473.     $this->startDate $startDate;
  474.     return $this;
  475. }
  476. /**
  477. * Get EndDate - End Date
  478. * @return \Carbon\Carbon|null
  479. */
  480. public function getEndDate(): ?\Carbon\Carbon
  481. {
  482.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  483.         $preValue $this->preGetValue("EndDate");
  484.         if ($preValue !== null) {
  485.             return $preValue;
  486.         }
  487.     }
  488.     $data $this->EndDate;
  489.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  490.         return $data->getPlain();
  491.     }
  492.     return $data;
  493. }
  494. /**
  495. * Set EndDate - End Date
  496. * @param \Carbon\Carbon|null $EndDate
  497. * @return \Pimcore\Model\DataObject\Report
  498. */
  499. public function setEndDate(?\Carbon\Carbon $EndDate)
  500. {
  501.     $this->EndDate $EndDate;
  502.     return $this;
  503. }
  504. /**
  505. * Get jsonData - Json Data
  506. * @return string|null
  507. */
  508. public function getJsonData(): ?string
  509. {
  510.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  511.         $preValue $this->preGetValue("jsonData");
  512.         if ($preValue !== null) {
  513.             return $preValue;
  514.         }
  515.     }
  516.     $data $this->jsonData;
  517.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  518.         return $data->getPlain();
  519.     }
  520.     return $data;
  521. }
  522. /**
  523. * Set jsonData - Json Data
  524. * @param string|null $jsonData
  525. * @return \Pimcore\Model\DataObject\Report
  526. */
  527. public function setJsonData(?string $jsonData)
  528. {
  529.     $this->jsonData $jsonData;
  530.     return $this;
  531. }
  532. /**
  533. * Get createdOn - Created On
  534. * @return \Carbon\Carbon|null
  535. */
  536. public function getCreatedOn(): ?\Carbon\Carbon
  537. {
  538.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  539.         $preValue $this->preGetValue("createdOn");
  540.         if ($preValue !== null) {
  541.             return $preValue;
  542.         }
  543.     }
  544.     $data $this->createdOn;
  545.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  546.         return $data->getPlain();
  547.     }
  548.     return $data;
  549. }
  550. /**
  551. * Set createdOn - Created On
  552. * @param \Carbon\Carbon|null $createdOn
  553. * @return \Pimcore\Model\DataObject\Report
  554. */
  555. public function setCreatedOn(?\Carbon\Carbon $createdOn)
  556. {
  557.     $this->createdOn $createdOn;
  558.     return $this;
  559. }
  560. /**
  561. * Get isHistorical - Is Historical
  562. * @return bool|null
  563. */
  564. public function getIsHistorical(): ?bool
  565. {
  566.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  567.         $preValue $this->preGetValue("isHistorical");
  568.         if ($preValue !== null) {
  569.             return $preValue;
  570.         }
  571.     }
  572.     $data $this->isHistorical;
  573.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  574.         return $data->getPlain();
  575.     }
  576.     return $data;
  577. }
  578. /**
  579. * Set isHistorical - Is Historical
  580. * @param bool|null $isHistorical
  581. * @return \Pimcore\Model\DataObject\Report
  582. */
  583. public function setIsHistorical(?bool $isHistorical)
  584. {
  585.     $this->isHistorical $isHistorical;
  586.     return $this;
  587. }
  588. /**
  589. * Get isMannedReport - Is Manned Report
  590. * @return bool|null
  591. */
  592. public function getIsMannedReport(): ?bool
  593. {
  594.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  595.         $preValue $this->preGetValue("isMannedReport");
  596.         if ($preValue !== null) {
  597.             return $preValue;
  598.         }
  599.     }
  600.     $data $this->isMannedReport;
  601.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  602.         return $data->getPlain();
  603.     }
  604.     return $data;
  605. }
  606. /**
  607. * Set isMannedReport - Is Manned Report
  608. * @param bool|null $isMannedReport
  609. * @return \Pimcore\Model\DataObject\Report
  610. */
  611. public function setIsMannedReport(?bool $isMannedReport)
  612. {
  613.     $this->isMannedReport $isMannedReport;
  614.     return $this;
  615. }
  616. /**
  617. * Get isAWSReport - Is AWS Report
  618. * @return bool|null
  619. */
  620. public function getIsAWSReport(): ?bool
  621. {
  622.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  623.         $preValue $this->preGetValue("isAWSReport");
  624.         if ($preValue !== null) {
  625.             return $preValue;
  626.         }
  627.     }
  628.     $data $this->isAWSReport;
  629.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  630.         return $data->getPlain();
  631.     }
  632.     return $data;
  633. }
  634. /**
  635. * Set isAWSReport - Is AWS Report
  636. * @param bool|null $isAWSReport
  637. * @return \Pimcore\Model\DataObject\Report
  638. */
  639. public function setIsAWSReport(?bool $isAWSReport)
  640. {
  641.     $this->isAWSReport $isAWSReport;
  642.     return $this;
  643. }
  644. /**
  645. * Get lang - Lang
  646. * @return string|null
  647. */
  648. public function getLang(): ?string
  649. {
  650.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  651.         $preValue $this->preGetValue("lang");
  652.         if ($preValue !== null) {
  653.             return $preValue;
  654.         }
  655.     }
  656.     $data $this->lang;
  657.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  658.         return $data->getPlain();
  659.     }
  660.     return $data;
  661. }
  662. /**
  663. * Set lang - Lang
  664. * @param string|null $lang
  665. * @return \Pimcore\Model\DataObject\Report
  666. */
  667. public function setLang(?string $lang)
  668. {
  669.     $this->lang $lang;
  670.     return $this;
  671. }
  672. /**
  673. * Get softDelete - Soft Delete
  674. * @return bool|null
  675. */
  676. public function getSoftDelete(): ?bool
  677. {
  678.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  679.         $preValue $this->preGetValue("softDelete");
  680.         if ($preValue !== null) {
  681.             return $preValue;
  682.         }
  683.     }
  684.     $data $this->softDelete;
  685.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  686.         return $data->getPlain();
  687.     }
  688.     return $data;
  689. }
  690. /**
  691. * Set softDelete - Soft Delete
  692. * @param bool|null $softDelete
  693. * @return \Pimcore\Model\DataObject\Report
  694. */
  695. public function setSoftDelete(?bool $softDelete)
  696. {
  697.     $this->softDelete $softDelete;
  698.     return $this;
  699. }
  700. /**
  701. * Get createdBy - Created By
  702. * @return \Pimcore\Model\DataObject\Customer|null
  703. */
  704. public function getCreatedBy(): ?\Pimcore\Model\Element\AbstractElement
  705. {
  706.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  707.         $preValue $this->preGetValue("createdBy");
  708.         if ($preValue !== null) {
  709.             return $preValue;
  710.         }
  711.     }
  712.     $data $this->getClass()->getFieldDefinition("createdBy")->preGetData($this);
  713.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  714.         return $data->getPlain();
  715.     }
  716.     return $data;
  717. }
  718. /**
  719. * Set createdBy - Created By
  720. * @param \Pimcore\Model\DataObject\Customer|null $createdBy
  721. * @return \Pimcore\Model\DataObject\Report
  722. */
  723. public function setCreatedBy(?\Pimcore\Model\Element\AbstractElement $createdBy)
  724. {
  725.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
  726.     $fd $this->getClass()->getFieldDefinition("createdBy");
  727.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  728.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  729.     $currentData $this->getCreatedBy();
  730.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  731.     $isEqual $fd->isEqual($currentData$createdBy);
  732.     if (!$isEqual) {
  733.         $this->markFieldDirty("createdBy"true);
  734.     }
  735.     $this->createdBy $fd->preSetData($this$createdBy);
  736.     return $this;
  737. }
  738. /**
  739. * Get reportType - Report Type
  740. * @return \Pimcore\Model\DataObject\ReportType|null
  741. */
  742. public function getReportType(): ?\Pimcore\Model\Element\AbstractElement
  743. {
  744.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  745.         $preValue $this->preGetValue("reportType");
  746.         if ($preValue !== null) {
  747.             return $preValue;
  748.         }
  749.     }
  750.     $data $this->getClass()->getFieldDefinition("reportType")->preGetData($this);
  751.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  752.         return $data->getPlain();
  753.     }
  754.     return $data;
  755. }
  756. /**
  757. * Set reportType - Report Type
  758. * @param \Pimcore\Model\DataObject\ReportType|null $reportType
  759. * @return \Pimcore\Model\DataObject\Report
  760. */
  761. public function setReportType(?\Pimcore\Model\Element\AbstractElement $reportType)
  762. {
  763.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
  764.     $fd $this->getClass()->getFieldDefinition("reportType");
  765.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  766.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  767.     $currentData $this->getReportType();
  768.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  769.     $isEqual $fd->isEqual($currentData$reportType);
  770.     if (!$isEqual) {
  771.         $this->markFieldDirty("reportType"true);
  772.     }
  773.     $this->reportType $fd->preSetData($this$reportType);
  774.     return $this;
  775. }
  776. /**
  777. * Get Asset - Asset
  778. * @return \Pimcore\Model\Asset|null
  779. */
  780. public function getAsset(): ?\Pimcore\Model\Element\AbstractElement
  781. {
  782.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  783.         $preValue $this->preGetValue("Asset");
  784.         if ($preValue !== null) {
  785.             return $preValue;
  786.         }
  787.     }
  788.     $data $this->getClass()->getFieldDefinition("Asset")->preGetData($this);
  789.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  790.         return $data->getPlain();
  791.     }
  792.     return $data;
  793. }
  794. /**
  795. * Set Asset - Asset
  796. * @param \Pimcore\Model\Asset|null $Asset
  797. * @return \Pimcore\Model\DataObject\Report
  798. */
  799. public function setAsset(?\Pimcore\Model\Element\AbstractElement $Asset)
  800. {
  801.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
  802.     $fd $this->getClass()->getFieldDefinition("Asset");
  803.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  804.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  805.     $currentData $this->getAsset();
  806.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  807.     $isEqual $fd->isEqual($currentData$Asset);
  808.     if (!$isEqual) {
  809.         $this->markFieldDirty("Asset"true);
  810.     }
  811.     $this->Asset $fd->preSetData($this$Asset);
  812.     return $this;
  813. }
  814. /**
  815. * Get assetAr - Asset Ar
  816. * @return \Pimcore\Model\Asset|null
  817. */
  818. public function getAssetAr(): ?\Pimcore\Model\Element\AbstractElement
  819. {
  820.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  821.         $preValue $this->preGetValue("assetAr");
  822.         if ($preValue !== null) {
  823.             return $preValue;
  824.         }
  825.     }
  826.     $data $this->getClass()->getFieldDefinition("assetAr")->preGetData($this);
  827.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  828.         return $data->getPlain();
  829.     }
  830.     return $data;
  831. }
  832. /**
  833. * Set assetAr - Asset Ar
  834. * @param \Pimcore\Model\Asset|null $assetAr
  835. * @return \Pimcore\Model\DataObject\Report
  836. */
  837. public function setAssetAr(?\Pimcore\Model\Element\AbstractElement $assetAr)
  838. {
  839.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
  840.     $fd $this->getClass()->getFieldDefinition("assetAr");
  841.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  842.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  843.     $currentData $this->getAssetAr();
  844.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  845.     $isEqual $fd->isEqual($currentData$assetAr);
  846.     if (!$isEqual) {
  847.         $this->markFieldDirty("assetAr"true);
  848.     }
  849.     $this->assetAr $fd->preSetData($this$assetAr);
  850.     return $this;
  851. }
  852. /**
  853. * Get organization - Organization
  854. * @return \Pimcore\Model\DataObject\Organization[]
  855. */
  856. public function getOrganization(): array
  857. {
  858.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  859.         $preValue $this->preGetValue("organization");
  860.         if ($preValue !== null) {
  861.             return $preValue;
  862.         }
  863.     }
  864.     $data $this->getClass()->getFieldDefinition("organization")->preGetData($this);
  865.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  866.         return $data->getPlain();
  867.     }
  868.     return $data;
  869. }
  870. /**
  871. * Set organization - Organization
  872. * @param \Pimcore\Model\DataObject\Organization[] $organization
  873. * @return \Pimcore\Model\DataObject\Report
  874. */
  875. public function setOrganization(?array $organization)
  876. {
  877.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToManyObjectRelation $fd */
  878.     $fd $this->getClass()->getFieldDefinition("organization");
  879.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  880.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  881.     $currentData $this->getOrganization();
  882.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  883.     $isEqual $fd->isEqual($currentData$organization);
  884.     if (!$isEqual) {
  885.         $this->markFieldDirty("organization"true);
  886.     }
  887.     $this->organization $fd->preSetData($this$organization);
  888.     return $this;
  889. }
  890. /**
  891. * Get forPublicPortal - For Public Portal
  892. * @return bool|null
  893. */
  894. public function getForPublicPortal(): ?bool
  895. {
  896.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  897.         $preValue $this->preGetValue("forPublicPortal");
  898.         if ($preValue !== null) {
  899.             return $preValue;
  900.         }
  901.     }
  902.     $data $this->forPublicPortal;
  903.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  904.         return $data->getPlain();
  905.     }
  906.     return $data;
  907. }
  908. /**
  909. * Set forPublicPortal - For Public Portal
  910. * @param bool|null $forPublicPortal
  911. * @return \Pimcore\Model\DataObject\Report
  912. */
  913. public function setForPublicPortal(?bool $forPublicPortal)
  914. {
  915.     $this->forPublicPortal $forPublicPortal;
  916.     return $this;
  917. }
  918. /**
  919. * Get forAjwaaPortal - For Ajwaa Portal
  920. * @return bool|null
  921. */
  922. public function getForAjwaaPortal(): ?bool
  923. {
  924.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  925.         $preValue $this->preGetValue("forAjwaaPortal");
  926.         if ($preValue !== null) {
  927.             return $preValue;
  928.         }
  929.     }
  930.     $data $this->forAjwaaPortal;
  931.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  932.         return $data->getPlain();
  933.     }
  934.     return $data;
  935. }
  936. /**
  937. * Set forAjwaaPortal - For Ajwaa Portal
  938. * @param bool|null $forAjwaaPortal
  939. * @return \Pimcore\Model\DataObject\Report
  940. */
  941. public function setForAjwaaPortal(?bool $forAjwaaPortal)
  942. {
  943.     $this->forAjwaaPortal $forAjwaaPortal;
  944.     return $this;
  945. }
  946. /**
  947. * Get sendEmail - Send Email to Organizations
  948. * @return bool|null
  949. */
  950. public function getSendEmail(): ?bool
  951. {
  952.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  953.         $preValue $this->preGetValue("sendEmail");
  954.         if ($preValue !== null) {
  955.             return $preValue;
  956.         }
  957.     }
  958.     $data $this->sendEmail;
  959.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  960.         return $data->getPlain();
  961.     }
  962.     return $data;
  963. }
  964. /**
  965. * Set sendEmail - Send Email to Organizations
  966. * @param bool|null $sendEmail
  967. * @return \Pimcore\Model\DataObject\Report
  968. */
  969. public function setSendEmail(?bool $sendEmail)
  970. {
  971.     $this->sendEmail $sendEmail;
  972.     return $this;
  973. }
  974. /**
  975. * Get forEmailChannel - For Email Channel
  976. * @return bool|null
  977. */
  978. public function getForEmailChannel(): ?bool
  979. {
  980.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  981.         $preValue $this->preGetValue("forEmailChannel");
  982.         if ($preValue !== null) {
  983.             return $preValue;
  984.         }
  985.     }
  986.     $data $this->forEmailChannel;
  987.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  988.         return $data->getPlain();
  989.     }
  990.     return $data;
  991. }
  992. /**
  993. * Set forEmailChannel - For Email Channel
  994. * @param bool|null $forEmailChannel
  995. * @return \Pimcore\Model\DataObject\Report
  996. */
  997. public function setForEmailChannel(?bool $forEmailChannel)
  998. {
  999.     $this->forEmailChannel $forEmailChannel;
  1000.     return $this;
  1001. }
  1002. /**
  1003. * Get forTwitterChannel - For Twitter Channel
  1004. * @return bool|null
  1005. */
  1006. public function getForTwitterChannel(): ?bool
  1007. {
  1008.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1009.         $preValue $this->preGetValue("forTwitterChannel");
  1010.         if ($preValue !== null) {
  1011.             return $preValue;
  1012.         }
  1013.     }
  1014.     $data $this->forTwitterChannel;
  1015.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1016.         return $data->getPlain();
  1017.     }
  1018.     return $data;
  1019. }
  1020. /**
  1021. * Set forTwitterChannel - For Twitter Channel
  1022. * @param bool|null $forTwitterChannel
  1023. * @return \Pimcore\Model\DataObject\Report
  1024. */
  1025. public function setForTwitterChannel(?bool $forTwitterChannel)
  1026. {
  1027.     $this->forTwitterChannel $forTwitterChannel;
  1028.     return $this;
  1029. }
  1030. /**
  1031. * Get showPublicDescription - Show Only 10 Day Report Description to Public Portal
  1032. * @return bool|null
  1033. */
  1034. public function getShowPublicDescription(): ?bool
  1035. {
  1036.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1037.         $preValue $this->preGetValue("showPublicDescription");
  1038.         if ($preValue !== null) {
  1039.             return $preValue;
  1040.         }
  1041.     }
  1042.     $data $this->showPublicDescription;
  1043.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1044.         return $data->getPlain();
  1045.     }
  1046.     return $data;
  1047. }
  1048. /**
  1049. * Set showPublicDescription - Show Only 10 Day Report Description to Public Portal
  1050. * @param bool|null $showPublicDescription
  1051. * @return \Pimcore\Model\DataObject\Report
  1052. */
  1053. public function setShowPublicDescription(?bool $showPublicDescription)
  1054. {
  1055.     $this->showPublicDescription $showPublicDescription;
  1056.     return $this;
  1057. }
  1058. /**
  1059. * Get emails - Emails for Email channel
  1060. * @return string|null
  1061. */
  1062. public function getEmails(): ?string
  1063. {
  1064.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1065.         $preValue $this->preGetValue("emails");
  1066.         if ($preValue !== null) {
  1067.             return $preValue;
  1068.         }
  1069.     }
  1070.     $data $this->emails;
  1071.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1072.         return $data->getPlain();
  1073.     }
  1074.     return $data;
  1075. }
  1076. /**
  1077. * Set emails - Emails for Email channel
  1078. * @param string|null $emails
  1079. * @return \Pimcore\Model\DataObject\Report
  1080. */
  1081. public function setEmails(?string $emails)
  1082. {
  1083.     $this->emails $emails;
  1084.     return $this;
  1085. }
  1086. /**
  1087. * Get isGovernorates - Create By All Governorates 
  1088. * @return bool|null
  1089. */
  1090. public function getIsGovernorates(): ?bool
  1091. {
  1092.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1093.         $preValue $this->preGetValue("isGovernorates");
  1094.         if ($preValue !== null) {
  1095.             return $preValue;
  1096.         }
  1097.     }
  1098.     $data $this->isGovernorates;
  1099.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1100.         return $data->getPlain();
  1101.     }
  1102.     return $data;
  1103. }
  1104. /**
  1105. * Set isGovernorates - Create By All Governorates 
  1106. * @param bool|null $isGovernorates
  1107. * @return \Pimcore\Model\DataObject\Report
  1108. */
  1109. public function setIsGovernorates(?bool $isGovernorates)
  1110. {
  1111.     $this->isGovernorates $isGovernorates;
  1112.     return $this;
  1113. }
  1114. /**
  1115. * Get publishOnPdf - Publish On Pdf Used only for Red Sea and Arabian Gulf Reports
  1116. * @return bool|null
  1117. */
  1118. public function getPublishOnPdf(): ?bool
  1119. {
  1120.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1121.         $preValue $this->preGetValue("publishOnPdf");
  1122.         if ($preValue !== null) {
  1123.             return $preValue;
  1124.         }
  1125.     }
  1126.     $data $this->publishOnPdf;
  1127.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1128.         return $data->getPlain();
  1129.     }
  1130.     return $data;
  1131. }
  1132. /**
  1133. * Set publishOnPdf - Publish On Pdf Used only for Red Sea and Arabian Gulf Reports
  1134. * @param bool|null $publishOnPdf
  1135. * @return \Pimcore\Model\DataObject\Report
  1136. */
  1137. public function setPublishOnPdf(?bool $publishOnPdf)
  1138. {
  1139.     $this->publishOnPdf $publishOnPdf;
  1140.     return $this;
  1141. }
  1142. /**
  1143. * Get isSchedule - Is Schedule
  1144. * @return bool|null
  1145. */
  1146. public function getIsSchedule(): ?bool
  1147. {
  1148.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1149.         $preValue $this->preGetValue("isSchedule");
  1150.         if ($preValue !== null) {
  1151.             return $preValue;
  1152.         }
  1153.     }
  1154.     $data $this->isSchedule;
  1155.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1156.         return $data->getPlain();
  1157.     }
  1158.     return $data;
  1159. }
  1160. /**
  1161. * Set isSchedule - Is Schedule
  1162. * @param bool|null $isSchedule
  1163. * @return \Pimcore\Model\DataObject\Report
  1164. */
  1165. public function setIsSchedule(?bool $isSchedule)
  1166. {
  1167.     $this->isSchedule $isSchedule;
  1168.     return $this;
  1169. }
  1170. /**
  1171. * Get scheduleDate - Schedule Date
  1172. * @return \Carbon\Carbon|null
  1173. */
  1174. public function getScheduleDate(): ?\Carbon\Carbon
  1175. {
  1176.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1177.         $preValue $this->preGetValue("scheduleDate");
  1178.         if ($preValue !== null) {
  1179.             return $preValue;
  1180.         }
  1181.     }
  1182.     $data $this->scheduleDate;
  1183.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1184.         return $data->getPlain();
  1185.     }
  1186.     return $data;
  1187. }
  1188. /**
  1189. * Set scheduleDate - Schedule Date
  1190. * @param \Carbon\Carbon|null $scheduleDate
  1191. * @return \Pimcore\Model\DataObject\Report
  1192. */
  1193. public function setScheduleDate(?\Carbon\Carbon $scheduleDate)
  1194. {
  1195.     $this->scheduleDate $scheduleDate;
  1196.     return $this;
  1197. }
  1198. }