var/classes/DataObject/CoreShopCustomer.php line 93

Open in your IDE?
  1. <?php
  2. /**
  3.  * Inheritance: no
  4.  * Variants: no
  5.  *
  6.  * Fields Summary:
  7.  * - salutation [input]
  8.  * - lastname [lastname]
  9.  * - firstname [firstname]
  10.  * - company [coreShopRelation]
  11.  * - email [input]
  12.  * - newsletterConfirmed [newsletterConfirmed]
  13.  * - newsletterToken [input]
  14.  * - gender [gender]
  15.  * - localeCode [input]
  16.  * - registrationToken [input]
  17.  * - user [coreShopRelation]
  18.  * - phoneNumber [input]
  19.  * - accessLevel [select]
  20.  * - registerDate [datetime]
  21.  * - registerSource [select]
  22.  * - appUser [checkbox]
  23.  * - newsletterActive [newsletterActive]
  24.  * - magazineSubscribed [checkbox]
  25.  * - magazineSubscriptionDate [datetime]
  26.  * - magazineIsActuallyNeed [checkbox]
  27.  * - spentMoney [numeric]
  28.  * - spentMoneyBonus [numeric]
  29.  * - birthDate [date]
  30.  * - registeredWatches [advancedManyToManyObjectRelation]
  31.  * - nextEmailChangeAlert [date]
  32.  * - nextEmailChangeAlertCounter [numeric]
  33.  * - addressAccessType [select]
  34.  * - addresses [coreShopRelations]
  35.  * - backupAddresses [coreShopRelations]
  36.  * - defaultAddress [coreShopRelation]
  37.  * - customerGroups [coreShopRelations]
  38.  * - lastLoginDate [datetime]
  39.  * - lastLoginPlatform [input]
  40.  * - pushNotifications [advancedManyToManyObjectRelation]
  41.  * - magazines [advancedManyToManyObjectRelation]
  42.  * - disabledEmailChangeAlert [checkbox]
  43.  * - gameRulesConsent [checkbox]
  44.  */
  45. namespace Pimcore\Model\DataObject;
  46. use Pimcore\Model\DataObject\Exception\InheritanceParentNotFoundException;
  47. use Pimcore\Model\DataObject\PreGetValueHookInterface;
  48. /**
  49. * @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing getList(array $config = [])
  50. * @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getBySalutation($value, $limit = 0, $offset = 0, $objectTypes = null)
  51. * @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByLastname($value, $limit = 0, $offset = 0, $objectTypes = null)
  52. * @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByFirstname($value, $limit = 0, $offset = 0, $objectTypes = null)
  53. * @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByCompany($value, $limit = 0, $offset = 0, $objectTypes = null)
  54. * @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByEmail($value, $limit = 0, $offset = 0, $objectTypes = null)
  55. * @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByNewsletterConfirmed($value, $limit = 0, $offset = 0, $objectTypes = null)
  56. * @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByNewsletterToken($value, $limit = 0, $offset = 0, $objectTypes = null)
  57. * @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByGender($value, $limit = 0, $offset = 0, $objectTypes = null)
  58. * @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByLocaleCode($value, $limit = 0, $offset = 0, $objectTypes = null)
  59. * @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByRegistrationToken($value, $limit = 0, $offset = 0, $objectTypes = null)
  60. * @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByUser($value, $limit = 0, $offset = 0, $objectTypes = null)
  61. * @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByPhoneNumber($value, $limit = 0, $offset = 0, $objectTypes = null)
  62. * @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByAccessLevel($value, $limit = 0, $offset = 0, $objectTypes = null)
  63. * @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByRegisterDate($value, $limit = 0, $offset = 0, $objectTypes = null)
  64. * @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByRegisterSource($value, $limit = 0, $offset = 0, $objectTypes = null)
  65. * @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByAppUser($value, $limit = 0, $offset = 0, $objectTypes = null)
  66. * @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByNewsletterActive($value, $limit = 0, $offset = 0, $objectTypes = null)
  67. * @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByMagazineSubscribed($value, $limit = 0, $offset = 0, $objectTypes = null)
  68. * @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByMagazineSubscriptionDate($value, $limit = 0, $offset = 0, $objectTypes = null)
  69. * @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByMagazineIsActuallyNeed($value, $limit = 0, $offset = 0, $objectTypes = null)
  70. * @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getBySpentMoney($value, $limit = 0, $offset = 0, $objectTypes = null)
  71. * @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getBySpentMoneyBonus($value, $limit = 0, $offset = 0, $objectTypes = null)
  72. * @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByBirthDate($value, $limit = 0, $offset = 0, $objectTypes = null)
  73. * @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByRegisteredWatches($value, $limit = 0, $offset = 0, $objectTypes = null)
  74. * @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByNextEmailChangeAlert($value, $limit = 0, $offset = 0, $objectTypes = null)
  75. * @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByNextEmailChangeAlertCounter($value, $limit = 0, $offset = 0, $objectTypes = null)
  76. * @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByAddressAccessType($value, $limit = 0, $offset = 0, $objectTypes = null)
  77. * @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByAddresses($value, $limit = 0, $offset = 0, $objectTypes = null)
  78. * @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByBackupAddresses($value, $limit = 0, $offset = 0, $objectTypes = null)
  79. * @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByDefaultAddress($value, $limit = 0, $offset = 0, $objectTypes = null)
  80. * @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByCustomerGroups($value, $limit = 0, $offset = 0, $objectTypes = null)
  81. * @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByLastLoginDate($value, $limit = 0, $offset = 0, $objectTypes = null)
  82. * @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByLastLoginPlatform($value, $limit = 0, $offset = 0, $objectTypes = null)
  83. * @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByPushNotifications($value, $limit = 0, $offset = 0, $objectTypes = null)
  84. * @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByMagazines($value, $limit = 0, $offset = 0, $objectTypes = null)
  85. * @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByDisabledEmailChangeAlert($value, $limit = 0, $offset = 0, $objectTypes = null)
  86. * @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByGameRulesConsent($value, $limit = 0, $offset = 0, $objectTypes = null)
  87. */
  88. class CoreShopCustomer extends \App\Model\Customer
  89. {
  90. protected $o_classId "cs_customer";
  91. protected $o_className "CoreShopCustomer";
  92. protected $salutation;
  93. protected $lastname;
  94. protected $firstname;
  95. protected $company;
  96. protected $email;
  97. protected $newsletterConfirmed;
  98. protected $newsletterToken;
  99. protected $gender;
  100. protected $localeCode;
  101. protected $registrationToken;
  102. protected $user;
  103. protected $phoneNumber;
  104. protected $accessLevel;
  105. protected $registerDate;
  106. protected $registerSource;
  107. protected $appUser;
  108. protected $newsletterActive;
  109. protected $magazineSubscribed;
  110. protected $magazineSubscriptionDate;
  111. protected $magazineIsActuallyNeed;
  112. protected $spentMoney;
  113. protected $spentMoneyBonus;
  114. protected $birthDate;
  115. protected $registeredWatches;
  116. protected $nextEmailChangeAlert;
  117. protected $nextEmailChangeAlertCounter;
  118. protected $addressAccessType;
  119. protected $addresses;
  120. protected $backupAddresses;
  121. protected $defaultAddress;
  122. protected $customerGroups;
  123. protected $lastLoginDate;
  124. protected $lastLoginPlatform;
  125. protected $pushNotifications;
  126. protected $magazines;
  127. protected $disabledEmailChangeAlert;
  128. protected $gameRulesConsent;
  129. /**
  130. * @param array $values
  131. * @return \Pimcore\Model\DataObject\CoreShopCustomer
  132. */
  133. public static function create($values = array()) {
  134.     $object = new static();
  135.     $object->setValues($values);
  136.     return $object;
  137. }
  138. /**
  139. * Get salutation - coreshop.customer.salutation
  140. * @return string|null
  141. */
  142. public function getSalutation(): ?string
  143. {
  144.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  145.         $preValue $this->preGetValue("salutation");
  146.         if ($preValue !== null) {
  147.             return $preValue;
  148.         }
  149.     }
  150.     $data $this->salutation;
  151.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  152.         return $data->getPlain();
  153.     }
  154.     return $data;
  155. }
  156. /**
  157. * Set salutation - coreshop.customer.salutation
  158. * @param string|null $salutation
  159. * @return \Pimcore\Model\DataObject\CoreShopCustomer
  160. */
  161. public function setSalutation(?string $salutation)
  162. {
  163.     $this->salutation $salutation;
  164.     return $this;
  165. }
  166. /**
  167. * Get lastname - coreshop.customer.lastname
  168. * @return string|null
  169. */
  170. public function getLastname(): ?string
  171. {
  172.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  173.         $preValue $this->preGetValue("lastname");
  174.         if ($preValue !== null) {
  175.             return $preValue;
  176.         }
  177.     }
  178.     $data $this->lastname;
  179.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  180.         return $data->getPlain();
  181.     }
  182.     return $data;
  183. }
  184. /**
  185. * Set lastname - coreshop.customer.lastname
  186. * @param string|null $lastname
  187. * @return \Pimcore\Model\DataObject\CoreShopCustomer
  188. */
  189. public function setLastname(?string $lastname)
  190. {
  191.     $this->lastname $lastname;
  192.     return $this;
  193. }
  194. /**
  195. * Get firstname - coreshop.customer.firstname
  196. * @return string|null
  197. */
  198. public function getFirstname(): ?string
  199. {
  200.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  201.         $preValue $this->preGetValue("firstname");
  202.         if ($preValue !== null) {
  203.             return $preValue;
  204.         }
  205.     }
  206.     $data $this->firstname;
  207.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  208.         return $data->getPlain();
  209.     }
  210.     return $data;
  211. }
  212. /**
  213. * Set firstname - coreshop.customer.firstname
  214. * @param string|null $firstname
  215. * @return \Pimcore\Model\DataObject\CoreShopCustomer
  216. */
  217. public function setFirstname(?string $firstname)
  218. {
  219.     $this->firstname $firstname;
  220.     return $this;
  221. }
  222. /**
  223. * Get company - coreshop.customer.company
  224. * @return ?\CoreShop\Component\Customer\Model\CompanyInterface
  225. */
  226. public function getCompany(): ?\CoreShop\Component\Customer\Model\CompanyInterface
  227. {
  228.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  229.         $preValue $this->preGetValue("company");
  230.         if ($preValue !== null) {
  231.             return $preValue;
  232.         }
  233.     }
  234.     $data $this->getClass()->getFieldDefinition("company")->preGetData($this);
  235.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  236.         return $data->getPlain();
  237.     }
  238.     return $data;
  239. }
  240. /**
  241. * Set company - coreshop.customer.company
  242. * @param ?\CoreShop\Component\Customer\Model\CompanyInterface $company
  243. * @return \Pimcore\Model\DataObject\CoreShopCustomer
  244. */
  245. public function setCompany(?\CoreShop\Component\Customer\Model\CompanyInterface $company)
  246. {
  247.     /** @var \CoreShop\Bundle\ResourceBundle\CoreExtension\CoreShopRelation $fd */
  248.     $fd $this->getClass()->getFieldDefinition("company");
  249.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  250.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  251.     $currentData $this->getCompany();
  252.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  253.     $isEqual $fd->isEqual($currentData$company);
  254.     if (!$isEqual) {
  255.         $this->markFieldDirty("company"true);
  256.     }
  257.     $this->company $fd->preSetData($this$company);
  258.     return $this;
  259. }
  260. /**
  261. * Get email - coreshop.customer.email
  262. * @return string|null
  263. */
  264. public function getEmail(): ?string
  265. {
  266.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  267.         $preValue $this->preGetValue("email");
  268.         if ($preValue !== null) {
  269.             return $preValue;
  270.         }
  271.     }
  272.     $data $this->email;
  273.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  274.         return $data->getPlain();
  275.     }
  276.     return $data;
  277. }
  278. /**
  279. * Set email - coreshop.customer.email
  280. * @param string|null $email
  281. * @return \Pimcore\Model\DataObject\CoreShopCustomer
  282. */
  283. public function setEmail(?string $email)
  284. {
  285.     $this->email $email;
  286.     return $this;
  287. }
  288. /**
  289. * Get newsletterConfirmed - coreshop.customer.newsletter_confirmed
  290. * @return bool|null
  291. */
  292. public function getNewsletterConfirmed(): ?bool
  293. {
  294.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  295.         $preValue $this->preGetValue("newsletterConfirmed");
  296.         if ($preValue !== null) {
  297.             return $preValue;
  298.         }
  299.     }
  300.     $data $this->newsletterConfirmed;
  301.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  302.         return $data->getPlain();
  303.     }
  304.     return $data;
  305. }
  306. /**
  307. * Set newsletterConfirmed - coreshop.customer.newsletter_confirmed
  308. * @param bool|null $newsletterConfirmed
  309. * @return \Pimcore\Model\DataObject\CoreShopCustomer
  310. */
  311. public function setNewsletterConfirmed(?bool $newsletterConfirmed)
  312. {
  313.     $this->newsletterConfirmed $newsletterConfirmed;
  314.     return $this;
  315. }
  316. /**
  317. * Get newsletterToken - Newsletter Token
  318. * @return string|null
  319. */
  320. public function getNewsletterToken(): ?string
  321. {
  322.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  323.         $preValue $this->preGetValue("newsletterToken");
  324.         if ($preValue !== null) {
  325.             return $preValue;
  326.         }
  327.     }
  328.     $data $this->newsletterToken;
  329.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  330.         return $data->getPlain();
  331.     }
  332.     return $data;
  333. }
  334. /**
  335. * Set newsletterToken - Newsletter Token
  336. * @param string|null $newsletterToken
  337. * @return \Pimcore\Model\DataObject\CoreShopCustomer
  338. */
  339. public function setNewsletterToken(?string $newsletterToken)
  340. {
  341.     $this->newsletterToken $newsletterToken;
  342.     return $this;
  343. }
  344. /**
  345. * Get gender - coreshop.customer.gender
  346. * @return string|null
  347. */
  348. public function getGender(): ?string
  349. {
  350.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  351.         $preValue $this->preGetValue("gender");
  352.         if ($preValue !== null) {
  353.             return $preValue;
  354.         }
  355.     }
  356.     $data $this->gender;
  357.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  358.         return $data->getPlain();
  359.     }
  360.     return $data;
  361. }
  362. /**
  363. * Set gender - coreshop.customer.gender
  364. * @param string|null $gender
  365. * @return \Pimcore\Model\DataObject\CoreShopCustomer
  366. */
  367. public function setGender(?string $gender)
  368. {
  369.     $this->gender $gender;
  370.     return $this;
  371. }
  372. /**
  373. * Get localeCode - coreshop.customer.locale
  374. * @return string|null
  375. */
  376. public function getLocaleCode(): ?string
  377. {
  378.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  379.         $preValue $this->preGetValue("localeCode");
  380.         if ($preValue !== null) {
  381.             return $preValue;
  382.         }
  383.     }
  384.     $data $this->localeCode;
  385.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  386.         return $data->getPlain();
  387.     }
  388.     return $data;
  389. }
  390. /**
  391. * Set localeCode - coreshop.customer.locale
  392. * @param string|null $localeCode
  393. * @return \Pimcore\Model\DataObject\CoreShopCustomer
  394. */
  395. public function setLocaleCode(?string $localeCode)
  396. {
  397.     $this->localeCode $localeCode;
  398.     return $this;
  399. }
  400. /**
  401. * Get registrationToken - Registration Token
  402. * @return string|null
  403. */
  404. public function getRegistrationToken(): ?string
  405. {
  406.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  407.         $preValue $this->preGetValue("registrationToken");
  408.         if ($preValue !== null) {
  409.             return $preValue;
  410.         }
  411.     }
  412.     $data $this->registrationToken;
  413.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  414.         return $data->getPlain();
  415.     }
  416.     return $data;
  417. }
  418. /**
  419. * Set registrationToken - Registration Token
  420. * @param string|null $registrationToken
  421. * @return \Pimcore\Model\DataObject\CoreShopCustomer
  422. */
  423. public function setRegistrationToken(?string $registrationToken)
  424. {
  425.     $this->registrationToken $registrationToken;
  426.     return $this;
  427. }
  428. /**
  429. * Get user - coreshop.customer.user
  430. * @return ?\CoreShop\Component\User\Model\UserInterface
  431. */
  432. public function getUser(): ?\CoreShop\Component\User\Model\UserInterface
  433. {
  434.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  435.         $preValue $this->preGetValue("user");
  436.         if ($preValue !== null) {
  437.             return $preValue;
  438.         }
  439.     }
  440.     $data $this->getClass()->getFieldDefinition("user")->preGetData($this);
  441.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  442.         return $data->getPlain();
  443.     }
  444.     return $data;
  445. }
  446. /**
  447. * Set user - coreshop.customer.user
  448. * @param ?\CoreShop\Component\User\Model\UserInterface $user
  449. * @return \Pimcore\Model\DataObject\CoreShopCustomer
  450. */
  451. public function setUser(?\CoreShop\Component\User\Model\UserInterface $user)
  452. {
  453.     /** @var \CoreShop\Bundle\ResourceBundle\CoreExtension\CoreShopRelation $fd */
  454.     $fd $this->getClass()->getFieldDefinition("user");
  455.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  456.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  457.     $currentData $this->getUser();
  458.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  459.     $isEqual $fd->isEqual($currentData$user);
  460.     if (!$isEqual) {
  461.         $this->markFieldDirty("user"true);
  462.     }
  463.     $this->user $fd->preSetData($this$user);
  464.     return $this;
  465. }
  466. /**
  467. * Get phoneNumber - Telefonszám
  468. * @return string|null
  469. */
  470. public function getPhoneNumber(): ?string
  471. {
  472.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  473.         $preValue $this->preGetValue("phoneNumber");
  474.         if ($preValue !== null) {
  475.             return $preValue;
  476.         }
  477.     }
  478.     $data $this->phoneNumber;
  479.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  480.         return $data->getPlain();
  481.     }
  482.     return $data;
  483. }
  484. /**
  485. * Set phoneNumber - Telefonszám
  486. * @param string|null $phoneNumber
  487. * @return \Pimcore\Model\DataObject\CoreShopCustomer
  488. */
  489. public function setPhoneNumber(?string $phoneNumber)
  490. {
  491.     $this->phoneNumber $phoneNumber;
  492.     return $this;
  493. }
  494. /**
  495. * Get accessLevel - Tagsági szint
  496. * @return string|null
  497. */
  498. public function getAccessLevel(): ?string
  499. {
  500.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  501.         $preValue $this->preGetValue("accessLevel");
  502.         if ($preValue !== null) {
  503.             return $preValue;
  504.         }
  505.     }
  506.     $data $this->accessLevel;
  507.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  508.         return $data->getPlain();
  509.     }
  510.     return $data;
  511. }
  512. /**
  513. * Set accessLevel - Tagsági szint
  514. * @param string|null $accessLevel
  515. * @return \Pimcore\Model\DataObject\CoreShopCustomer
  516. */
  517. public function setAccessLevel(?string $accessLevel)
  518. {
  519.     $this->accessLevel $accessLevel;
  520.     return $this;
  521. }
  522. /**
  523. * Get registerDate - Regisztráció dátuma
  524. * @return \Carbon\Carbon|null
  525. */
  526. public function getRegisterDate(): ?\Carbon\Carbon
  527. {
  528.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  529.         $preValue $this->preGetValue("registerDate");
  530.         if ($preValue !== null) {
  531.             return $preValue;
  532.         }
  533.     }
  534.     $data $this->registerDate;
  535.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  536.         return $data->getPlain();
  537.     }
  538.     return $data;
  539. }
  540. /**
  541. * Set registerDate - Regisztráció dátuma
  542. * @param \Carbon\Carbon|null $registerDate
  543. * @return \Pimcore\Model\DataObject\CoreShopCustomer
  544. */
  545. public function setRegisterDate(?\Carbon\Carbon $registerDate)
  546. {
  547.     $this->registerDate $registerDate;
  548.     return $this;
  549. }
  550. /**
  551. * Get registerSource - Regisztráció forrása
  552. * @return string|null
  553. */
  554. public function getRegisterSource(): ?string
  555. {
  556.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  557.         $preValue $this->preGetValue("registerSource");
  558.         if ($preValue !== null) {
  559.             return $preValue;
  560.         }
  561.     }
  562.     $data $this->registerSource;
  563.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  564.         return $data->getPlain();
  565.     }
  566.     return $data;
  567. }
  568. /**
  569. * Set registerSource - Regisztráció forrása
  570. * @param string|null $registerSource
  571. * @return \Pimcore\Model\DataObject\CoreShopCustomer
  572. */
  573. public function setRegisterSource(?string $registerSource)
  574. {
  575.     $this->registerSource $registerSource;
  576.     return $this;
  577. }
  578. /**
  579. * Get appUser - App felhasználó
  580. * @return bool|null
  581. */
  582. public function getAppUser(): ?bool
  583. {
  584.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  585.         $preValue $this->preGetValue("appUser");
  586.         if ($preValue !== null) {
  587.             return $preValue;
  588.         }
  589.     }
  590.     $data $this->appUser;
  591.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  592.         return $data->getPlain();
  593.     }
  594.     return $data;
  595. }
  596. /**
  597. * Set appUser - App felhasználó
  598. * @param bool|null $appUser
  599. * @return \Pimcore\Model\DataObject\CoreShopCustomer
  600. */
  601. public function setAppUser(?bool $appUser)
  602. {
  603.     $this->appUser $appUser;
  604.     return $this;
  605. }
  606. /**
  607. * Get newsletterActive - coreshop.customer.newsletter_active
  608. * @return bool|null
  609. */
  610. public function getNewsletterActive(): ?bool
  611. {
  612.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  613.         $preValue $this->preGetValue("newsletterActive");
  614.         if ($preValue !== null) {
  615.             return $preValue;
  616.         }
  617.     }
  618.     $data $this->newsletterActive;
  619.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  620.         return $data->getPlain();
  621.     }
  622.     return $data;
  623. }
  624. /**
  625. * Set newsletterActive - coreshop.customer.newsletter_active
  626. * @param bool|null $newsletterActive
  627. * @return \Pimcore\Model\DataObject\CoreShopCustomer
  628. */
  629. public function setNewsletterActive(?bool $newsletterActive)
  630. {
  631.     $this->newsletterActive $newsletterActive;
  632.     return $this;
  633. }
  634. /**
  635. * Get magazineSubscribed - Magazin felirazkozás
  636. * @return bool|null
  637. */
  638. public function getMagazineSubscribed(): ?bool
  639. {
  640.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  641.         $preValue $this->preGetValue("magazineSubscribed");
  642.         if ($preValue !== null) {
  643.             return $preValue;
  644.         }
  645.     }
  646.     $data $this->magazineSubscribed;
  647.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  648.         return $data->getPlain();
  649.     }
  650.     return $data;
  651. }
  652. /**
  653. * Set magazineSubscribed - Magazin felirazkozás
  654. * @param bool|null $magazineSubscribed
  655. * @return \Pimcore\Model\DataObject\CoreShopCustomer
  656. */
  657. public function setMagazineSubscribed(?bool $magazineSubscribed)
  658. {
  659.     $this->magazineSubscribed $magazineSubscribed;
  660.     return $this;
  661. }
  662. /**
  663. * Get magazineSubscriptionDate - Magazine Subscription Date
  664. * @return \Carbon\Carbon|null
  665. */
  666. public function getMagazineSubscriptionDate(): ?\Carbon\Carbon
  667. {
  668.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  669.         $preValue $this->preGetValue("magazineSubscriptionDate");
  670.         if ($preValue !== null) {
  671.             return $preValue;
  672.         }
  673.     }
  674.     $data $this->magazineSubscriptionDate;
  675.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  676.         return $data->getPlain();
  677.     }
  678.     return $data;
  679. }
  680. /**
  681. * Set magazineSubscriptionDate - Magazine Subscription Date
  682. * @param \Carbon\Carbon|null $magazineSubscriptionDate
  683. * @return \Pimcore\Model\DataObject\CoreShopCustomer
  684. */
  685. public function setMagazineSubscriptionDate(?\Carbon\Carbon $magazineSubscriptionDate)
  686. {
  687.     $this->magazineSubscriptionDate $magazineSubscriptionDate;
  688.     return $this;
  689. }
  690. /**
  691. * Get magazineIsActuallyNeed - Magazine Is Actually Need
  692. * @return bool|null
  693. */
  694. public function getMagazineIsActuallyNeed(): ?bool
  695. {
  696.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  697.         $preValue $this->preGetValue("magazineIsActuallyNeed");
  698.         if ($preValue !== null) {
  699.             return $preValue;
  700.         }
  701.     }
  702.     $data $this->magazineIsActuallyNeed;
  703.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  704.         return $data->getPlain();
  705.     }
  706.     return $data;
  707. }
  708. /**
  709. * Set magazineIsActuallyNeed - Magazine Is Actually Need
  710. * @param bool|null $magazineIsActuallyNeed
  711. * @return \Pimcore\Model\DataObject\CoreShopCustomer
  712. */
  713. public function setMagazineIsActuallyNeed(?bool $magazineIsActuallyNeed)
  714. {
  715.     $this->magazineIsActuallyNeed $magazineIsActuallyNeed;
  716.     return $this;
  717. }
  718. /**
  719. * Get spentMoney - Vásárolt összeg
  720. * @return int|null
  721. */
  722. public function getSpentMoney(): ?int
  723. {
  724.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  725.         $preValue $this->preGetValue("spentMoney");
  726.         if ($preValue !== null) {
  727.             return $preValue;
  728.         }
  729.     }
  730.     $data $this->spentMoney;
  731.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  732.         return $data->getPlain();
  733.     }
  734.     return $data;
  735. }
  736. /**
  737. * Set spentMoney - Vásárolt összeg
  738. * @param int|null $spentMoney
  739. * @return \Pimcore\Model\DataObject\CoreShopCustomer
  740. */
  741. public function setSpentMoney(?int $spentMoney)
  742. {
  743.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
  744.     $fd $this->getClass()->getFieldDefinition("spentMoney");
  745.     $this->spentMoney $fd->preSetData($this$spentMoney);
  746.     return $this;
  747. }
  748. /**
  749. * Get spentMoneyBonus - Vásárlot összeg plusz
  750. * @return int|null
  751. */
  752. public function getSpentMoneyBonus(): ?int
  753. {
  754.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  755.         $preValue $this->preGetValue("spentMoneyBonus");
  756.         if ($preValue !== null) {
  757.             return $preValue;
  758.         }
  759.     }
  760.     $data $this->spentMoneyBonus;
  761.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  762.         return $data->getPlain();
  763.     }
  764.     return $data;
  765. }
  766. /**
  767. * Set spentMoneyBonus - Vásárlot összeg plusz
  768. * @param int|null $spentMoneyBonus
  769. * @return \Pimcore\Model\DataObject\CoreShopCustomer
  770. */
  771. public function setSpentMoneyBonus(?int $spentMoneyBonus)
  772. {
  773.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
  774.     $fd $this->getClass()->getFieldDefinition("spentMoneyBonus");
  775.     $this->spentMoneyBonus $fd->preSetData($this$spentMoneyBonus);
  776.     return $this;
  777. }
  778. /**
  779. * Get birthDate - Születési dátum
  780. * @return \Carbon\Carbon|null
  781. */
  782. public function getBirthDate(): ?\Carbon\Carbon
  783. {
  784.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  785.         $preValue $this->preGetValue("birthDate");
  786.         if ($preValue !== null) {
  787.             return $preValue;
  788.         }
  789.     }
  790.     $data $this->birthDate;
  791.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  792.         return $data->getPlain();
  793.     }
  794.     return $data;
  795. }
  796. /**
  797. * Set birthDate - Születési dátum
  798. * @param \Carbon\Carbon|null $birthDate
  799. * @return \Pimcore\Model\DataObject\CoreShopCustomer
  800. */
  801. public function setBirthDate(?\Carbon\Carbon $birthDate)
  802. {
  803.     $this->birthDate $birthDate;
  804.     return $this;
  805. }
  806. /**
  807. * Get registeredWatches - Registered Watches
  808. * @return \Pimcore\Model\DataObject\Data\ObjectMetadata[]
  809. */
  810. public function getRegisteredWatches(): array
  811. {
  812.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  813.         $preValue $this->preGetValue("registeredWatches");
  814.         if ($preValue !== null) {
  815.             return $preValue;
  816.         }
  817.     }
  818.     $data $this->getClass()->getFieldDefinition("registeredWatches")->preGetData($this);
  819.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  820.         return $data->getPlain();
  821.     }
  822.     return $data;
  823. }
  824. /**
  825. * Set registeredWatches - Registered Watches
  826. * @param \Pimcore\Model\DataObject\Data\ObjectMetadata[] $registeredWatches
  827. * @return \Pimcore\Model\DataObject\CoreShopCustomer
  828. */
  829. public function setRegisteredWatches(?array $registeredWatches)
  830. {
  831.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\AdvancedManyToManyObjectRelation $fd */
  832.     $fd $this->getClass()->getFieldDefinition("registeredWatches");
  833.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  834.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  835.     $currentData $this->getRegisteredWatches();
  836.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  837.     $isEqual $fd->isEqual($currentData$registeredWatches);
  838.     if (!$isEqual) {
  839.         $this->markFieldDirty("registeredWatches"true);
  840.     }
  841.     $this->registeredWatches $fd->preSetData($this$registeredWatches);
  842.     return $this;
  843. }
  844. /**
  845. * Get nextEmailChangeAlert - Következő emailcím változtatás figyelmeztetés dátuma
  846. * @return \Carbon\Carbon|null
  847. */
  848. public function getNextEmailChangeAlert(): ?\Carbon\Carbon
  849. {
  850.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  851.         $preValue $this->preGetValue("nextEmailChangeAlert");
  852.         if ($preValue !== null) {
  853.             return $preValue;
  854.         }
  855.     }
  856.     $data $this->nextEmailChangeAlert;
  857.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  858.         return $data->getPlain();
  859.     }
  860.     return $data;
  861. }
  862. /**
  863. * Set nextEmailChangeAlert - Következő emailcím változtatás figyelmeztetés dátuma
  864. * @param \Carbon\Carbon|null $nextEmailChangeAlert
  865. * @return \Pimcore\Model\DataObject\CoreShopCustomer
  866. */
  867. public function setNextEmailChangeAlert(?\Carbon\Carbon $nextEmailChangeAlert)
  868. {
  869.     $this->nextEmailChangeAlert $nextEmailChangeAlert;
  870.     return $this;
  871. }
  872. /**
  873. * Get nextEmailChangeAlertCounter - Next Email Change Alert Counter
  874. * @return float|null
  875. */
  876. public function getNextEmailChangeAlertCounter(): ?float
  877. {
  878.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  879.         $preValue $this->preGetValue("nextEmailChangeAlertCounter");
  880.         if ($preValue !== null) {
  881.             return $preValue;
  882.         }
  883.     }
  884.     $data $this->nextEmailChangeAlertCounter;
  885.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  886.         return $data->getPlain();
  887.     }
  888.     return $data;
  889. }
  890. /**
  891. * Set nextEmailChangeAlertCounter - Next Email Change Alert Counter
  892. * @param float|null $nextEmailChangeAlertCounter
  893. * @return \Pimcore\Model\DataObject\CoreShopCustomer
  894. */
  895. public function setNextEmailChangeAlertCounter(?float $nextEmailChangeAlertCounter)
  896. {
  897.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
  898.     $fd $this->getClass()->getFieldDefinition("nextEmailChangeAlertCounter");
  899.     $this->nextEmailChangeAlertCounter $fd->preSetData($this$nextEmailChangeAlertCounter);
  900.     return $this;
  901. }
  902. /**
  903. * Get addressAccessType - coreshop.customer.address_access_type
  904. * @return string|null
  905. */
  906. public function getAddressAccessType(): ?string
  907. {
  908.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  909.         $preValue $this->preGetValue("addressAccessType");
  910.         if ($preValue !== null) {
  911.             return $preValue;
  912.         }
  913.     }
  914.     $data $this->addressAccessType;
  915.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  916.         return $data->getPlain();
  917.     }
  918.     return $data;
  919. }
  920. /**
  921. * Set addressAccessType - coreshop.customer.address_access_type
  922. * @param string|null $addressAccessType
  923. * @return \Pimcore\Model\DataObject\CoreShopCustomer
  924. */
  925. public function setAddressAccessType(?string $addressAccessType)
  926. {
  927.     $this->addressAccessType $addressAccessType;
  928.     return $this;
  929. }
  930. /**
  931. * Get addresses - coreshop.customer.addresses
  932. * @return ?\CoreShop\Component\Address\Model\AddressInterface[]
  933. */
  934. public function getAddresses(): ?array
  935. {
  936.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  937.         $preValue $this->preGetValue("addresses");
  938.         if ($preValue !== null) {
  939.             return $preValue;
  940.         }
  941.     }
  942.     $data $this->getClass()->getFieldDefinition("addresses")->preGetData($this);
  943.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  944.         return $data->getPlain();
  945.     }
  946.     return $data;
  947. }
  948. /**
  949. * Set addresses - coreshop.customer.addresses
  950. * @param ?\CoreShop\Component\Address\Model\AddressInterface[] $addresses
  951. * @return \Pimcore\Model\DataObject\CoreShopCustomer
  952. */
  953. public function setAddresses(?array $addresses)
  954. {
  955.     /** @var \CoreShop\Bundle\ResourceBundle\CoreExtension\CoreShopRelations $fd */
  956.     $fd $this->getClass()->getFieldDefinition("addresses");
  957.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  958.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  959.     $currentData $this->getAddresses();
  960.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  961.     $isEqual $fd->isEqual($currentData$addresses);
  962.     if (!$isEqual) {
  963.         $this->markFieldDirty("addresses"true);
  964.     }
  965.     $this->addresses $fd->preSetData($this$addresses);
  966.     return $this;
  967. }
  968. /**
  969. * Get backupAddresses - Backup Addresses
  970. * @return ?\CoreShop\Component\Address\Model\AddressInterface[]
  971. */
  972. public function getBackupAddresses(): ?array
  973. {
  974.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  975.         $preValue $this->preGetValue("backupAddresses");
  976.         if ($preValue !== null) {
  977.             return $preValue;
  978.         }
  979.     }
  980.     $data $this->getClass()->getFieldDefinition("backupAddresses")->preGetData($this);
  981.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  982.         return $data->getPlain();
  983.     }
  984.     return $data;
  985. }
  986. /**
  987. * Set backupAddresses - Backup Addresses
  988. * @param ?\CoreShop\Component\Address\Model\AddressInterface[] $backupAddresses
  989. * @return \Pimcore\Model\DataObject\CoreShopCustomer
  990. */
  991. public function setBackupAddresses(?array $backupAddresses)
  992. {
  993.     /** @var \CoreShop\Bundle\ResourceBundle\CoreExtension\CoreShopRelations $fd */
  994.     $fd $this->getClass()->getFieldDefinition("backupAddresses");
  995.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  996.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  997.     $currentData $this->getBackupAddresses();
  998.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  999.     $isEqual $fd->isEqual($currentData$backupAddresses);
  1000.     if (!$isEqual) {
  1001.         $this->markFieldDirty("backupAddresses"true);
  1002.     }
  1003.     $this->backupAddresses $fd->preSetData($this$backupAddresses);
  1004.     return $this;
  1005. }
  1006. /**
  1007. * Get defaultAddress - coreshop.customer.default_address
  1008. * @return ?\CoreShop\Component\Address\Model\AddressInterface
  1009. */
  1010. public function getDefaultAddress(): ?\CoreShop\Component\Address\Model\AddressInterface
  1011. {
  1012.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1013.         $preValue $this->preGetValue("defaultAddress");
  1014.         if ($preValue !== null) {
  1015.             return $preValue;
  1016.         }
  1017.     }
  1018.     $data $this->getClass()->getFieldDefinition("defaultAddress")->preGetData($this);
  1019.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1020.         return $data->getPlain();
  1021.     }
  1022.     return $data;
  1023. }
  1024. /**
  1025. * Set defaultAddress - coreshop.customer.default_address
  1026. * @param ?\CoreShop\Component\Address\Model\AddressInterface $defaultAddress
  1027. * @return \Pimcore\Model\DataObject\CoreShopCustomer
  1028. */
  1029. public function setDefaultAddress(?\CoreShop\Component\Address\Model\AddressInterface $defaultAddress)
  1030. {
  1031.     /** @var \CoreShop\Bundle\ResourceBundle\CoreExtension\CoreShopRelation $fd */
  1032.     $fd $this->getClass()->getFieldDefinition("defaultAddress");
  1033.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  1034.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  1035.     $currentData $this->getDefaultAddress();
  1036.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  1037.     $isEqual $fd->isEqual($currentData$defaultAddress);
  1038.     if (!$isEqual) {
  1039.         $this->markFieldDirty("defaultAddress"true);
  1040.     }
  1041.     $this->defaultAddress $fd->preSetData($this$defaultAddress);
  1042.     return $this;
  1043. }
  1044. /**
  1045. * Get customerGroups - coreshop.customer.groups
  1046. * @return ?\CoreShop\Component\Customer\Model\CustomerGroupInterface[]
  1047. */
  1048. public function getCustomerGroups(): ?array
  1049. {
  1050.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1051.         $preValue $this->preGetValue("customerGroups");
  1052.         if ($preValue !== null) {
  1053.             return $preValue;
  1054.         }
  1055.     }
  1056.     $data $this->getClass()->getFieldDefinition("customerGroups")->preGetData($this);
  1057.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1058.         return $data->getPlain();
  1059.     }
  1060.     return $data;
  1061. }
  1062. /**
  1063. * Set customerGroups - coreshop.customer.groups
  1064. * @param ?\CoreShop\Component\Customer\Model\CustomerGroupInterface[] $customerGroups
  1065. * @return \Pimcore\Model\DataObject\CoreShopCustomer
  1066. */
  1067. public function setCustomerGroups(?array $customerGroups)
  1068. {
  1069.     /** @var \CoreShop\Bundle\ResourceBundle\CoreExtension\CoreShopRelations $fd */
  1070.     $fd $this->getClass()->getFieldDefinition("customerGroups");
  1071.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  1072.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  1073.     $currentData $this->getCustomerGroups();
  1074.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  1075.     $isEqual $fd->isEqual($currentData$customerGroups);
  1076.     if (!$isEqual) {
  1077.         $this->markFieldDirty("customerGroups"true);
  1078.     }
  1079.     $this->customerGroups $fd->preSetData($this$customerGroups);
  1080.     return $this;
  1081. }
  1082. /**
  1083. * Get lastLoginDate - Utolsó bejelentkezés
  1084. * @return \Carbon\Carbon|null
  1085. */
  1086. public function getLastLoginDate(): ?\Carbon\Carbon
  1087. {
  1088.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1089.         $preValue $this->preGetValue("lastLoginDate");
  1090.         if ($preValue !== null) {
  1091.             return $preValue;
  1092.         }
  1093.     }
  1094.     $data $this->lastLoginDate;
  1095.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1096.         return $data->getPlain();
  1097.     }
  1098.     return $data;
  1099. }
  1100. /**
  1101. * Set lastLoginDate - Utolsó bejelentkezés
  1102. * @param \Carbon\Carbon|null $lastLoginDate
  1103. * @return \Pimcore\Model\DataObject\CoreShopCustomer
  1104. */
  1105. public function setLastLoginDate(?\Carbon\Carbon $lastLoginDate)
  1106. {
  1107.     $this->lastLoginDate $lastLoginDate;
  1108.     return $this;
  1109. }
  1110. /**
  1111. * Get lastLoginPlatform - Platform
  1112. * @return string|null
  1113. */
  1114. public function getLastLoginPlatform(): ?string
  1115. {
  1116.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1117.         $preValue $this->preGetValue("lastLoginPlatform");
  1118.         if ($preValue !== null) {
  1119.             return $preValue;
  1120.         }
  1121.     }
  1122.     $data $this->lastLoginPlatform;
  1123.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1124.         return $data->getPlain();
  1125.     }
  1126.     return $data;
  1127. }
  1128. /**
  1129. * Set lastLoginPlatform - Platform
  1130. * @param string|null $lastLoginPlatform
  1131. * @return \Pimcore\Model\DataObject\CoreShopCustomer
  1132. */
  1133. public function setLastLoginPlatform(?string $lastLoginPlatform)
  1134. {
  1135.     $this->lastLoginPlatform $lastLoginPlatform;
  1136.     return $this;
  1137. }
  1138. /**
  1139. * Get pushNotifications - Push Notifications
  1140. * @return \Pimcore\Model\DataObject\Data\ObjectMetadata[]
  1141. */
  1142. public function getPushNotifications(): array
  1143. {
  1144.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1145.         $preValue $this->preGetValue("pushNotifications");
  1146.         if ($preValue !== null) {
  1147.             return $preValue;
  1148.         }
  1149.     }
  1150.     $data $this->getClass()->getFieldDefinition("pushNotifications")->preGetData($this);
  1151.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1152.         return $data->getPlain();
  1153.     }
  1154.     return $data;
  1155. }
  1156. /**
  1157. * Set pushNotifications - Push Notifications
  1158. * @param \Pimcore\Model\DataObject\Data\ObjectMetadata[] $pushNotifications
  1159. * @return \Pimcore\Model\DataObject\CoreShopCustomer
  1160. */
  1161. public function setPushNotifications(?array $pushNotifications)
  1162. {
  1163.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\AdvancedManyToManyObjectRelation $fd */
  1164.     $fd $this->getClass()->getFieldDefinition("pushNotifications");
  1165.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  1166.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  1167.     $currentData $this->getPushNotifications();
  1168.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  1169.     $isEqual $fd->isEqual($currentData$pushNotifications);
  1170.     if (!$isEqual) {
  1171.         $this->markFieldDirty("pushNotifications"true);
  1172.     }
  1173.     $this->pushNotifications $fd->preSetData($this$pushNotifications);
  1174.     return $this;
  1175. }
  1176. /**
  1177. * Get magazines - Magazinok
  1178. * @return \Pimcore\Model\DataObject\Data\ObjectMetadata[]
  1179. */
  1180. public function getMagazines(): array
  1181. {
  1182.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1183.         $preValue $this->preGetValue("magazines");
  1184.         if ($preValue !== null) {
  1185.             return $preValue;
  1186.         }
  1187.     }
  1188.     $data $this->getClass()->getFieldDefinition("magazines")->preGetData($this);
  1189.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1190.         return $data->getPlain();
  1191.     }
  1192.     return $data;
  1193. }
  1194. /**
  1195. * Set magazines - Magazinok
  1196. * @param \Pimcore\Model\DataObject\Data\ObjectMetadata[] $magazines
  1197. * @return \Pimcore\Model\DataObject\CoreShopCustomer
  1198. */
  1199. public function setMagazines(?array $magazines)
  1200. {
  1201.     /** @var \Pimcore\Model\DataObject\ClassDefinition\Data\AdvancedManyToManyObjectRelation $fd */
  1202.     $fd $this->getClass()->getFieldDefinition("magazines");
  1203.     $hideUnpublished \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
  1204.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
  1205.     $currentData $this->getMagazines();
  1206.     \Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
  1207.     $isEqual $fd->isEqual($currentData$magazines);
  1208.     if (!$isEqual) {
  1209.         $this->markFieldDirty("magazines"true);
  1210.     }
  1211.     $this->magazines $fd->preSetData($this$magazines);
  1212.     return $this;
  1213. }
  1214. /**
  1215. * Get disabledEmailChangeAlert - Email változtatás figyelmeztetés kikapcsolva
  1216. * @return bool|null
  1217. */
  1218. public function getDisabledEmailChangeAlert(): ?bool
  1219. {
  1220.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1221.         $preValue $this->preGetValue("disabledEmailChangeAlert");
  1222.         if ($preValue !== null) {
  1223.             return $preValue;
  1224.         }
  1225.     }
  1226.     $data $this->disabledEmailChangeAlert;
  1227.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1228.         return $data->getPlain();
  1229.     }
  1230.     return $data;
  1231. }
  1232. /**
  1233. * Set disabledEmailChangeAlert - Email változtatás figyelmeztetés kikapcsolva
  1234. * @param bool|null $disabledEmailChangeAlert
  1235. * @return \Pimcore\Model\DataObject\CoreShopCustomer
  1236. */
  1237. public function setDisabledEmailChangeAlert(?bool $disabledEmailChangeAlert)
  1238. {
  1239.     $this->disabledEmailChangeAlert $disabledEmailChangeAlert;
  1240.     return $this;
  1241. }
  1242. /**
  1243. * Get gameRulesConsent - Játékszabályzat beleegyezés
  1244. * @return bool|null
  1245. */
  1246. public function getGameRulesConsent(): ?bool
  1247. {
  1248.     if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
  1249.         $preValue $this->preGetValue("gameRulesConsent");
  1250.         if ($preValue !== null) {
  1251.             return $preValue;
  1252.         }
  1253.     }
  1254.     $data $this->gameRulesConsent;
  1255.     if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
  1256.         return $data->getPlain();
  1257.     }
  1258.     return $data;
  1259. }
  1260. /**
  1261. * Set gameRulesConsent - Játékszabályzat beleegyezés
  1262. * @param bool|null $gameRulesConsent
  1263. * @return \Pimcore\Model\DataObject\CoreShopCustomer
  1264. */
  1265. public function setGameRulesConsent(?bool $gameRulesConsent)
  1266. {
  1267.     $this->gameRulesConsent $gameRulesConsent;
  1268.     return $this;
  1269. }
  1270. }