var/classes/DataObject/SkidataConsumerCategory.php line 67

Open in your IDE?
  1. <?php
  2. /**
  3.  * Inheritance: no
  4.  * Variants: no
  5.  *
  6.  * Fields Summary:
  7.  * - uuid [input]
  8.  * - externalId [input]
  9.  * - active [checkbox]
  10.  * - reservedForSpecialUseCase [checkbox]
  11.  * - sortOrder [numeric]
  12.  * - localizedfields [localizedfields]
  13.  * -- name [input]
  14.  * -- description [textarea]
  15.  * - categoryType [select]
  16.  * - minAgeIncluded [input]
  17.  * - maxAgeIncluded [input]
  18.  * - maleMinAgeIncl [input]
  19.  * - maleMaxAgeIncl [input]
  20.  * - femaleMinAgeIncl [input]
  21.  * - femaleMaxAgeIncl [input]
  22.  * - fromDate [datetime]
  23.  * - toDate [datetime]
  24.  * - maleFromDate [datetime]
  25.  * - maleToDate [datetime]
  26.  * - femaleFromDate [datetime]
  27.  * - femaleToDate [datetime]
  28.  * - personType [select]
  29.  * - rawData [wysiwyg]
  30.  * - catalog [manyToOneRelation]
  31.  */
  32. namespace Pimcore\Model\DataObject;
  33. use Pimcore\Model\DataObject\Exception\InheritanceParentNotFoundException;
  34. use Pimcore\Model\DataObject\PreGetValueHookInterface;
  35. /**
  36. * @method static \Pimcore\Model\DataObject\SkidataConsumerCategory\Listing getList(array $config = [])
  37. * @method static \Pimcore\Model\DataObject\SkidataConsumerCategory\Listing|\Pimcore\Model\DataObject\SkidataConsumerCategory|null getByUuid($value, $limit = 0, $offset = 0, $objectTypes = null)
  38. * @method static \Pimcore\Model\DataObject\SkidataConsumerCategory\Listing|\Pimcore\Model\DataObject\SkidataConsumerCategory|null getByExternalId($value, $limit = 0, $offset = 0, $objectTypes = null)
  39. * @method static \Pimcore\Model\DataObject\SkidataConsumerCategory\Listing|\Pimcore\Model\DataObject\SkidataConsumerCategory|null getByActive($value, $limit = 0, $offset = 0, $objectTypes = null)
  40. * @method static \Pimcore\Model\DataObject\SkidataConsumerCategory\Listing|\Pimcore\Model\DataObject\SkidataConsumerCategory|null getByReservedForSpecialUseCase($value, $limit = 0, $offset = 0, $objectTypes = null)
  41. * @method static \Pimcore\Model\DataObject\SkidataConsumerCategory\Listing|\Pimcore\Model\DataObject\SkidataConsumerCategory|null getBySortOrder($value, $limit = 0, $offset = 0, $objectTypes = null)
  42. * @method static \Pimcore\Model\DataObject\SkidataConsumerCategory\Listing|\Pimcore\Model\DataObject\SkidataConsumerCategory|null getByLocalizedfields($field, $value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
  43. * @method static \Pimcore\Model\DataObject\SkidataConsumerCategory\Listing|\Pimcore\Model\DataObject\SkidataConsumerCategory|null getByName($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
  44. * @method static \Pimcore\Model\DataObject\SkidataConsumerCategory\Listing|\Pimcore\Model\DataObject\SkidataConsumerCategory|null getByDescription($value, $locale = null, $limit = 0, $offset = 0, $objectTypes = null)
  45. * @method static \Pimcore\Model\DataObject\SkidataConsumerCategory\Listing|\Pimcore\Model\DataObject\SkidataConsumerCategory|null getByCategoryType($value, $limit = 0, $offset = 0, $objectTypes = null)
  46. * @method static \Pimcore\Model\DataObject\SkidataConsumerCategory\Listing|\Pimcore\Model\DataObject\SkidataConsumerCategory|null getByMinAgeIncluded($value, $limit = 0, $offset = 0, $objectTypes = null)
  47. * @method static \Pimcore\Model\DataObject\SkidataConsumerCategory\Listing|\Pimcore\Model\DataObject\SkidataConsumerCategory|null getByMaxAgeIncluded($value, $limit = 0, $offset = 0, $objectTypes = null)
  48. * @method static \Pimcore\Model\DataObject\SkidataConsumerCategory\Listing|\Pimcore\Model\DataObject\SkidataConsumerCategory|null getByMaleMinAgeIncl($value, $limit = 0, $offset = 0, $objectTypes = null)
  49. * @method static \Pimcore\Model\DataObject\SkidataConsumerCategory\Listing|\Pimcore\Model\DataObject\SkidataConsumerCategory|null getByMaleMaxAgeIncl($value, $limit = 0, $offset = 0, $objectTypes = null)
  50. * @method static \Pimcore\Model\DataObject\SkidataConsumerCategory\Listing|\Pimcore\Model\DataObject\SkidataConsumerCategory|null getByFemaleMinAgeIncl($value, $limit = 0, $offset = 0, $objectTypes = null)
  51. * @method static \Pimcore\Model\DataObject\SkidataConsumerCategory\Listing|\Pimcore\Model\DataObject\SkidataConsumerCategory|null getByFemaleMaxAgeIncl($value, $limit = 0, $offset = 0, $objectTypes = null)
  52. * @method static \Pimcore\Model\DataObject\SkidataConsumerCategory\Listing|\Pimcore\Model\DataObject\SkidataConsumerCategory|null getByFromDate($value, $limit = 0, $offset = 0, $objectTypes = null)
  53. * @method static \Pimcore\Model\DataObject\SkidataConsumerCategory\Listing|\Pimcore\Model\DataObject\SkidataConsumerCategory|null getByToDate($value, $limit = 0, $offset = 0, $objectTypes = null)
  54. * @method static \Pimcore\Model\DataObject\SkidataConsumerCategory\Listing|\Pimcore\Model\DataObject\SkidataConsumerCategory|null getByMaleFromDate($value, $limit = 0, $offset = 0, $objectTypes = null)
  55. * @method static \Pimcore\Model\DataObject\SkidataConsumerCategory\Listing|\Pimcore\Model\DataObject\SkidataConsumerCategory|null getByMaleToDate($value, $limit = 0, $offset = 0, $objectTypes = null)
  56. * @method static \Pimcore\Model\DataObject\SkidataConsumerCategory\Listing|\Pimcore\Model\DataObject\SkidataConsumerCategory|null getByFemaleFromDate($value, $limit = 0, $offset = 0, $objectTypes = null)
  57. * @method static \Pimcore\Model\DataObject\SkidataConsumerCategory\Listing|\Pimcore\Model\DataObject\SkidataConsumerCategory|null getByFemaleToDate($value, $limit = 0, $offset = 0, $objectTypes = null)
  58. * @method static \Pimcore\Model\DataObject\SkidataConsumerCategory\Listing|\Pimcore\Model\DataObject\SkidataConsumerCategory|null getByPersonType($value, $limit = 0, $offset = 0, $objectTypes = null)
  59. * @method static \Pimcore\Model\DataObject\SkidataConsumerCategory\Listing|\Pimcore\Model\DataObject\SkidataConsumerCategory|null getByRawData($value, $limit = 0, $offset = 0, $objectTypes = null)
  60. * @method static \Pimcore\Model\DataObject\SkidataConsumerCategory\Listing|\Pimcore\Model\DataObject\SkidataConsumerCategory|null getByCatalog($value, $limit = 0, $offset = 0, $objectTypes = null)
  61. */
  62. class SkidataConsumerCategory extends Concrete implements \Elements\Bundle\SkidataTicketingSwebBundle\DataObject\SkidataInventoryInterface
  63. {
  64. protected $o_classId "SkidataConsumerCategory";
  65. protected $o_className "SkidataConsumerCategory";
  66. protected $uuid;
  67. protected $externalId;
  68. protected $active;
  69. protected $reservedForSpecialUseCase;
  70. protected $sortOrder;
  71. protected $localizedfields;
  72. protected $categoryType;
  73. protected $minAgeIncluded;
  74. protected $maxAgeIncluded;
  75. protected $maleMinAgeIncl;
  76. protected $maleMaxAgeIncl;
  77. protected $femaleMinAgeIncl;
  78. protected $femaleMaxAgeIncl;
  79. protected $fromDate;
  80. protected $toDate;
  81. protected $maleFromDate;
  82. protected $maleToDate;
  83. protected $femaleFromDate;
  84. protected $femaleToDate;
  85. protected $personType;
  86. protected $rawData;
  87. protected $catalog;
  88. /**
  89. * @param array $values
  90. * @return \Pimcore\Model\DataObject\SkidataConsumerCategory
  91. */
  92. public static function create($values = array()) {
  93.     $object = new static();
  94.     $object->setValues($values);
  95.     return $object;
  96. }
  97. /**
  98. * Get uuid - uuid
  99. * @return string|null
  100. */
  101. public function getUuid()
  102. {
  103.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  104.         $preValue $this->preGetValue("uuid");
  105.         if ($preValue !== null) {
  106.             return $preValue;
  107.         }
  108.     }
  109.     $data $this->uuid;
  110.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  111.         return $data->getPlain();
  112.     }
  113.     return $data;
  114. }
  115. /**
  116. * Set uuid - uuid
  117. * @param string|null $uuid
  118. * @return \Pimcore\Model\DataObject\SkidataConsumerCategory
  119. */
  120. public function setUuid($uuid)
  121. {
  122.     $this->uuid $uuid;
  123.     return $this;
  124. }
  125. /**
  126. * Get externalId - externalId
  127. * @return string|null
  128. */
  129. public function getExternalId()
  130. {
  131.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  132.         $preValue $this->preGetValue("externalId");
  133.         if ($preValue !== null) {
  134.             return $preValue;
  135.         }
  136.     }
  137.     $data $this->externalId;
  138.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  139.         return $data->getPlain();
  140.     }
  141.     return $data;
  142. }
  143. /**
  144. * Set externalId - externalId
  145. * @param string|null $externalId
  146. * @return \Pimcore\Model\DataObject\SkidataConsumerCategory
  147. */
  148. public function setExternalId($externalId)
  149. {
  150.     $this->externalId $externalId;
  151.     return $this;
  152. }
  153. /**
  154. * Get active - active
  155. * @return bool|null
  156. */
  157. public function getActive()
  158. {
  159.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  160.         $preValue $this->preGetValue("active");
  161.         if ($preValue !== null) {
  162.             return $preValue;
  163.         }
  164.     }
  165.     $data $this->active;
  166.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  167.         return $data->getPlain();
  168.     }
  169.     return $data;
  170. }
  171. /**
  172. * Set active - active
  173. * @param bool|null $active
  174. * @return \Pimcore\Model\DataObject\SkidataConsumerCategory
  175. */
  176. public function setActive($active)
  177. {
  178.     $this->active $active;
  179.     return $this;
  180. }
  181. /**
  182. * Get reservedForSpecialUseCase - reservedForSpecialUseCase
  183. * @return bool|null
  184. */
  185. public function getReservedForSpecialUseCase()
  186. {
  187.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  188.         $preValue $this->preGetValue("reservedForSpecialUseCase");
  189.         if ($preValue !== null) {
  190.             return $preValue;
  191.         }
  192.     }
  193.     $data $this->reservedForSpecialUseCase;
  194.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  195.         return $data->getPlain();
  196.     }
  197.     return $data;
  198. }
  199. /**
  200. * Set reservedForSpecialUseCase - reservedForSpecialUseCase
  201. * @param bool|null $reservedForSpecialUseCase
  202. * @return \Pimcore\Model\DataObject\SkidataConsumerCategory
  203. */
  204. public function setReservedForSpecialUseCase($reservedForSpecialUseCase)
  205. {
  206.     $this->reservedForSpecialUseCase $reservedForSpecialUseCase;
  207.     return $this;
  208. }
  209. /**
  210. * Get sortOrder - sortOrder
  211. * @return float|null
  212. */
  213. public function getSortOrder()
  214. {
  215.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  216.         $preValue $this->preGetValue("sortOrder");
  217.         if ($preValue !== null) {
  218.             return $preValue;
  219.         }
  220.     }
  221.     $data $this->sortOrder;
  222.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  223.         return $data->getPlain();
  224.     }
  225.     return $data;
  226. }
  227. /**
  228. * Set sortOrder - sortOrder
  229. * @param float|null $sortOrder
  230. * @return \Pimcore\Model\DataObject\SkidataConsumerCategory
  231. */
  232. public function setSortOrder($sortOrder)
  233. {
  234.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
  235.     $fd $this->getClass()->getFieldDefinition("sortOrder");
  236.     $this->sortOrder $fd->preSetData($this$sortOrder);
  237.     return $this;
  238. }
  239. /**
  240. * Get localizedfields - 
  241. * @return \Pimcore\Model\DataObject\Localizedfield|null
  242. */
  243. public function getLocalizedfields()
  244. {
  245.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  246.         $preValue $this->preGetValue("localizedfields");
  247.         if ($preValue !== null) {
  248.             return $preValue;
  249.         }
  250.     }
  251.     $data $this->getClass()->getFieldDefinition("localizedfields")->preGetData($this);
  252.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  253.         return $data->getPlain();
  254.     }
  255.     return $data;
  256. }
  257. /**
  258. * Get name - name
  259. * @return string|null
  260. */
  261. public function getName($language null)
  262. {
  263.     $data $this->getLocalizedfields()->getLocalizedValue("name"$language);
  264.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  265.         $preValue $this->preGetValue("name");
  266.         if ($preValue !== null) {
  267.             return $preValue;
  268.         }
  269.     }
  270.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  271.         return $data->getPlain();
  272.     }
  273.     return $data;
  274. }
  275. /**
  276. * Get description - description
  277. * @return string|null
  278. */
  279. public function getDescription($language null)
  280. {
  281.     $data $this->getLocalizedfields()->getLocalizedValue("description"$language);
  282.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  283.         $preValue $this->preGetValue("description");
  284.         if ($preValue !== null) {
  285.             return $preValue;
  286.         }
  287.     }
  288.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  289.         return $data->getPlain();
  290.     }
  291.     return $data;
  292. }
  293. /**
  294. * Set localizedfields - 
  295. * @param \Pimcore\Model\DataObject\Localizedfield|null $localizedfields
  296. * @return \Pimcore\Model\DataObject\SkidataConsumerCategory
  297. */
  298. public function setLocalizedfields($localizedfields)
  299. {
  300.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  301.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  302.     $currentData $this->getLocalizedfields();
  303.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  304.     $this->markFieldDirty("localizedfields"true);
  305.     $this->localizedfields $localizedfields;
  306.     return $this;
  307. }
  308. /**
  309. * Set name - name
  310. * @param string|null $name
  311. * @return \Pimcore\Model\DataObject\SkidataConsumerCategory
  312. */
  313. public function setName ($name$language null)
  314. {
  315.     $isEqual false;
  316.     $this->getLocalizedfields()->setLocalizedValue("name"$name$language, !$isEqual);
  317.     return $this;
  318. }
  319. /**
  320. * Set description - description
  321. * @param string|null $description
  322. * @return \Pimcore\Model\DataObject\SkidataConsumerCategory
  323. */
  324. public function setDescription ($description$language null)
  325. {
  326.     $isEqual false;
  327.     $this->getLocalizedfields()->setLocalizedValue("description"$description$language, !$isEqual);
  328.     return $this;
  329. }
  330. /**
  331. * Get categoryType - categoryType
  332. * @return string|null
  333. */
  334. public function getCategoryType()
  335. {
  336.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  337.         $preValue $this->preGetValue("categoryType");
  338.         if ($preValue !== null) {
  339.             return $preValue;
  340.         }
  341.     }
  342.     $data $this->categoryType;
  343.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  344.         return $data->getPlain();
  345.     }
  346.     return $data;
  347. }
  348. /**
  349. * Set categoryType - categoryType
  350. * @param string|null $categoryType
  351. * @return \Pimcore\Model\DataObject\SkidataConsumerCategory
  352. */
  353. public function setCategoryType($categoryType)
  354. {
  355.     $this->categoryType $categoryType;
  356.     return $this;
  357. }
  358. /**
  359. * Get minAgeIncluded - minAgeIncluded
  360. * @return string|null
  361. */
  362. public function getMinAgeIncluded()
  363. {
  364.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  365.         $preValue $this->preGetValue("minAgeIncluded");
  366.         if ($preValue !== null) {
  367.             return $preValue;
  368.         }
  369.     }
  370.     $data $this->minAgeIncluded;
  371.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  372.         return $data->getPlain();
  373.     }
  374.     return $data;
  375. }
  376. /**
  377. * Set minAgeIncluded - minAgeIncluded
  378. * @param string|null $minAgeIncluded
  379. * @return \Pimcore\Model\DataObject\SkidataConsumerCategory
  380. */
  381. public function setMinAgeIncluded($minAgeIncluded)
  382. {
  383.     $this->minAgeIncluded $minAgeIncluded;
  384.     return $this;
  385. }
  386. /**
  387. * Get maxAgeIncluded - maxAgeIncluded
  388. * @return string|null
  389. */
  390. public function getMaxAgeIncluded()
  391. {
  392.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  393.         $preValue $this->preGetValue("maxAgeIncluded");
  394.         if ($preValue !== null) {
  395.             return $preValue;
  396.         }
  397.     }
  398.     $data $this->maxAgeIncluded;
  399.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  400.         return $data->getPlain();
  401.     }
  402.     return $data;
  403. }
  404. /**
  405. * Set maxAgeIncluded - maxAgeIncluded
  406. * @param string|null $maxAgeIncluded
  407. * @return \Pimcore\Model\DataObject\SkidataConsumerCategory
  408. */
  409. public function setMaxAgeIncluded($maxAgeIncluded)
  410. {
  411.     $this->maxAgeIncluded $maxAgeIncluded;
  412.     return $this;
  413. }
  414. /**
  415. * Get maleMinAgeIncl - maleMinAgeIncl
  416. * @return string|null
  417. */
  418. public function getMaleMinAgeIncl()
  419. {
  420.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  421.         $preValue $this->preGetValue("maleMinAgeIncl");
  422.         if ($preValue !== null) {
  423.             return $preValue;
  424.         }
  425.     }
  426.     $data $this->maleMinAgeIncl;
  427.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  428.         return $data->getPlain();
  429.     }
  430.     return $data;
  431. }
  432. /**
  433. * Set maleMinAgeIncl - maleMinAgeIncl
  434. * @param string|null $maleMinAgeIncl
  435. * @return \Pimcore\Model\DataObject\SkidataConsumerCategory
  436. */
  437. public function setMaleMinAgeIncl($maleMinAgeIncl)
  438. {
  439.     $this->maleMinAgeIncl $maleMinAgeIncl;
  440.     return $this;
  441. }
  442. /**
  443. * Get maleMaxAgeIncl - maleMaxAgeIncl
  444. * @return string|null
  445. */
  446. public function getMaleMaxAgeIncl()
  447. {
  448.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  449.         $preValue $this->preGetValue("maleMaxAgeIncl");
  450.         if ($preValue !== null) {
  451.             return $preValue;
  452.         }
  453.     }
  454.     $data $this->maleMaxAgeIncl;
  455.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  456.         return $data->getPlain();
  457.     }
  458.     return $data;
  459. }
  460. /**
  461. * Set maleMaxAgeIncl - maleMaxAgeIncl
  462. * @param string|null $maleMaxAgeIncl
  463. * @return \Pimcore\Model\DataObject\SkidataConsumerCategory
  464. */
  465. public function setMaleMaxAgeIncl($maleMaxAgeIncl)
  466. {
  467.     $this->maleMaxAgeIncl $maleMaxAgeIncl;
  468.     return $this;
  469. }
  470. /**
  471. * Get femaleMinAgeIncl - femaleMinAgeIncl
  472. * @return string|null
  473. */
  474. public function getFemaleMinAgeIncl()
  475. {
  476.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  477.         $preValue $this->preGetValue("femaleMinAgeIncl");
  478.         if ($preValue !== null) {
  479.             return $preValue;
  480.         }
  481.     }
  482.     $data $this->femaleMinAgeIncl;
  483.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  484.         return $data->getPlain();
  485.     }
  486.     return $data;
  487. }
  488. /**
  489. * Set femaleMinAgeIncl - femaleMinAgeIncl
  490. * @param string|null $femaleMinAgeIncl
  491. * @return \Pimcore\Model\DataObject\SkidataConsumerCategory
  492. */
  493. public function setFemaleMinAgeIncl($femaleMinAgeIncl)
  494. {
  495.     $this->femaleMinAgeIncl $femaleMinAgeIncl;
  496.     return $this;
  497. }
  498. /**
  499. * Get femaleMaxAgeIncl - femaleMaxAgeIncl
  500. * @return string|null
  501. */
  502. public function getFemaleMaxAgeIncl()
  503. {
  504.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  505.         $preValue $this->preGetValue("femaleMaxAgeIncl");
  506.         if ($preValue !== null) {
  507.             return $preValue;
  508.         }
  509.     }
  510.     $data $this->femaleMaxAgeIncl;
  511.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  512.         return $data->getPlain();
  513.     }
  514.     return $data;
  515. }
  516. /**
  517. * Set femaleMaxAgeIncl - femaleMaxAgeIncl
  518. * @param string|null $femaleMaxAgeIncl
  519. * @return \Pimcore\Model\DataObject\SkidataConsumerCategory
  520. */
  521. public function setFemaleMaxAgeIncl($femaleMaxAgeIncl)
  522. {
  523.     $this->femaleMaxAgeIncl $femaleMaxAgeIncl;
  524.     return $this;
  525. }
  526. /**
  527. * Get fromDate - fromDate
  528. * @return \Carbon\Carbon|null
  529. */
  530. public function getFromDate()
  531. {
  532.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  533.         $preValue $this->preGetValue("fromDate");
  534.         if ($preValue !== null) {
  535.             return $preValue;
  536.         }
  537.     }
  538.     $data $this->fromDate;
  539.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  540.         return $data->getPlain();
  541.     }
  542.     return $data;
  543. }
  544. /**
  545. * Set fromDate - fromDate
  546. * @param \Carbon\Carbon|null $fromDate
  547. * @return \Pimcore\Model\DataObject\SkidataConsumerCategory
  548. */
  549. public function setFromDate($fromDate)
  550. {
  551.     $this->fromDate $fromDate;
  552.     return $this;
  553. }
  554. /**
  555. * Get toDate - toDate
  556. * @return \Carbon\Carbon|null
  557. */
  558. public function getToDate()
  559. {
  560.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  561.         $preValue $this->preGetValue("toDate");
  562.         if ($preValue !== null) {
  563.             return $preValue;
  564.         }
  565.     }
  566.     $data $this->toDate;
  567.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  568.         return $data->getPlain();
  569.     }
  570.     return $data;
  571. }
  572. /**
  573. * Set toDate - toDate
  574. * @param \Carbon\Carbon|null $toDate
  575. * @return \Pimcore\Model\DataObject\SkidataConsumerCategory
  576. */
  577. public function setToDate($toDate)
  578. {
  579.     $this->toDate $toDate;
  580.     return $this;
  581. }
  582. /**
  583. * Get maleFromDate - maleFromDate
  584. * @return \Carbon\Carbon|null
  585. */
  586. public function getMaleFromDate()
  587. {
  588.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  589.         $preValue $this->preGetValue("maleFromDate");
  590.         if ($preValue !== null) {
  591.             return $preValue;
  592.         }
  593.     }
  594.     $data $this->maleFromDate;
  595.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  596.         return $data->getPlain();
  597.     }
  598.     return $data;
  599. }
  600. /**
  601. * Set maleFromDate - maleFromDate
  602. * @param \Carbon\Carbon|null $maleFromDate
  603. * @return \Pimcore\Model\DataObject\SkidataConsumerCategory
  604. */
  605. public function setMaleFromDate($maleFromDate)
  606. {
  607.     $this->maleFromDate $maleFromDate;
  608.     return $this;
  609. }
  610. /**
  611. * Get maleToDate - maleToDate
  612. * @return \Carbon\Carbon|null
  613. */
  614. public function getMaleToDate()
  615. {
  616.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  617.         $preValue $this->preGetValue("maleToDate");
  618.         if ($preValue !== null) {
  619.             return $preValue;
  620.         }
  621.     }
  622.     $data $this->maleToDate;
  623.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  624.         return $data->getPlain();
  625.     }
  626.     return $data;
  627. }
  628. /**
  629. * Set maleToDate - maleToDate
  630. * @param \Carbon\Carbon|null $maleToDate
  631. * @return \Pimcore\Model\DataObject\SkidataConsumerCategory
  632. */
  633. public function setMaleToDate($maleToDate)
  634. {
  635.     $this->maleToDate $maleToDate;
  636.     return $this;
  637. }
  638. /**
  639. * Get femaleFromDate - femaleFromDate
  640. * @return \Carbon\Carbon|null
  641. */
  642. public function getFemaleFromDate()
  643. {
  644.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  645.         $preValue $this->preGetValue("femaleFromDate");
  646.         if ($preValue !== null) {
  647.             return $preValue;
  648.         }
  649.     }
  650.     $data $this->femaleFromDate;
  651.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  652.         return $data->getPlain();
  653.     }
  654.     return $data;
  655. }
  656. /**
  657. * Set femaleFromDate - femaleFromDate
  658. * @param \Carbon\Carbon|null $femaleFromDate
  659. * @return \Pimcore\Model\DataObject\SkidataConsumerCategory
  660. */
  661. public function setFemaleFromDate($femaleFromDate)
  662. {
  663.     $this->femaleFromDate $femaleFromDate;
  664.     return $this;
  665. }
  666. /**
  667. * Get femaleToDate - femaleToDate
  668. * @return \Carbon\Carbon|null
  669. */
  670. public function getFemaleToDate()
  671. {
  672.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  673.         $preValue $this->preGetValue("femaleToDate");
  674.         if ($preValue !== null) {
  675.             return $preValue;
  676.         }
  677.     }
  678.     $data $this->femaleToDate;
  679.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  680.         return $data->getPlain();
  681.     }
  682.     return $data;
  683. }
  684. /**
  685. * Set femaleToDate - femaleToDate
  686. * @param \Carbon\Carbon|null $femaleToDate
  687. * @return \Pimcore\Model\DataObject\SkidataConsumerCategory
  688. */
  689. public function setFemaleToDate($femaleToDate)
  690. {
  691.     $this->femaleToDate $femaleToDate;
  692.     return $this;
  693. }
  694. /**
  695. * Get personType - Personen Typ
  696. * @return string|null
  697. */
  698. public function getPersonType()
  699. {
  700.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  701.         $preValue $this->preGetValue("personType");
  702.         if ($preValue !== null) {
  703.             return $preValue;
  704.         }
  705.     }
  706.     $data $this->personType;
  707.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  708.         return $data->getPlain();
  709.     }
  710.     return $data;
  711. }
  712. /**
  713. * Set personType - Personen Typ
  714. * @param string|null $personType
  715. * @return \Pimcore\Model\DataObject\SkidataConsumerCategory
  716. */
  717. public function setPersonType($personType)
  718. {
  719.     $this->personType $personType;
  720.     return $this;
  721. }
  722. /**
  723. * Get rawData - rawData
  724. * @return string|null
  725. */
  726. public function getRawData()
  727. {
  728.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  729.         $preValue $this->preGetValue("rawData");
  730.         if ($preValue !== null) {
  731.             return $preValue;
  732.         }
  733.     }
  734.     $data $this->getClass()->getFieldDefinition("rawData")->preGetData($this);
  735.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  736.         return $data->getPlain();
  737.     }
  738.     return $data;
  739. }
  740. /**
  741. * Set rawData - rawData
  742. * @param string|null $rawData
  743. * @return \Pimcore\Model\DataObject\SkidataConsumerCategory
  744. */
  745. public function setRawData($rawData)
  746. {
  747.     $this->rawData $rawData;
  748.     return $this;
  749. }
  750. /**
  751. * Get catalog - catalog
  752. * @return \Pimcore\Model\DataObject\SkidataCatalogInfo|null
  753. */
  754. public function getCatalog()
  755. {
  756.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  757.         $preValue $this->preGetValue("catalog");
  758.         if ($preValue !== null) {
  759.             return $preValue;
  760.         }
  761.     }
  762.     $data $this->getClass()->getFieldDefinition("catalog")->preGetData($this);
  763.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  764.         return $data->getPlain();
  765.     }
  766.     return $data;
  767. }
  768. /**
  769. * Set catalog - catalog
  770. * @param \Pimcore\Model\DataObject\SkidataCatalogInfo|null $catalog
  771. * @return \Pimcore\Model\DataObject\SkidataConsumerCategory
  772. */
  773. public function setCatalog($catalog)
  774. {
  775.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\ManyToOneRelation $fd */
  776.     $fd $this->getClass()->getFieldDefinition("catalog");
  777.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  778.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  779.     $currentData $this->getCatalog();
  780.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  781.     $isEqual $fd->isEqual($currentData$catalog);
  782.     if (!$isEqual) {
  783.         $this->markFieldDirty("catalog"true);
  784.     }
  785.     $this->catalog $fd->preSetData($this$catalog);
  786.     return $this;
  787. }
  788. }