<?php
/**
* Inheritance: no
* Variants: no
*
* Fields Summary:
* - salutation [input]
* - lastname [lastname]
* - firstname [firstname]
* - company [coreShopRelation]
* - email [input]
* - newsletterConfirmed [newsletterConfirmed]
* - newsletterToken [input]
* - gender [gender]
* - localeCode [input]
* - registrationToken [input]
* - user [coreShopRelation]
* - phoneNumber [input]
* - accessLevel [select]
* - registerDate [datetime]
* - registerSource [select]
* - appUser [checkbox]
* - newsletterActive [newsletterActive]
* - magazineSubscribed [checkbox]
* - magazineSubscriptionDate [datetime]
* - magazineIsActuallyNeed [checkbox]
* - spentMoney [numeric]
* - spentMoneyBonus [numeric]
* - birthDate [date]
* - registeredWatches [advancedManyToManyObjectRelation]
* - nextEmailChangeAlert [date]
* - nextEmailChangeAlertCounter [numeric]
* - addressAccessType [select]
* - addresses [coreShopRelations]
* - backupAddresses [coreShopRelations]
* - defaultAddress [coreShopRelation]
* - customerGroups [coreShopRelations]
* - lastLoginDate [datetime]
* - lastLoginPlatform [input]
* - pushNotifications [advancedManyToManyObjectRelation]
* - magazines [advancedManyToManyObjectRelation]
* - disabledEmailChangeAlert [checkbox]
* - gameRulesConsent [checkbox]
*/
namespace Pimcore\Model\DataObject;
use Pimcore\Model\DataObject\Exception\InheritanceParentNotFoundException;
use Pimcore\Model\DataObject\PreGetValueHookInterface;
/**
* @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing getList(array $config = [])
* @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getBySalutation($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByLastname($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByFirstname($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByCompany($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByEmail($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByNewsletterConfirmed($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByNewsletterToken($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByGender($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByLocaleCode($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByRegistrationToken($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByUser($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByPhoneNumber($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByAccessLevel($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByRegisterDate($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByRegisterSource($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByAppUser($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByNewsletterActive($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByMagazineSubscribed($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByMagazineSubscriptionDate($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByMagazineIsActuallyNeed($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getBySpentMoney($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getBySpentMoneyBonus($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByBirthDate($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByRegisteredWatches($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByNextEmailChangeAlert($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByNextEmailChangeAlertCounter($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByAddressAccessType($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByAddresses($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByBackupAddresses($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByDefaultAddress($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByCustomerGroups($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByLastLoginDate($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByLastLoginPlatform($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByPushNotifications($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByMagazines($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByDisabledEmailChangeAlert($value, $limit = 0, $offset = 0, $objectTypes = null)
* @method static \Pimcore\Model\DataObject\CoreShopCustomer\Listing|\Pimcore\Model\DataObject\CoreShopCustomer|null getByGameRulesConsent($value, $limit = 0, $offset = 0, $objectTypes = null)
*/
class CoreShopCustomer extends \App\Model\Customer
{
protected $o_classId = "cs_customer";
protected $o_className = "CoreShopCustomer";
protected $salutation;
protected $lastname;
protected $firstname;
protected $company;
protected $email;
protected $newsletterConfirmed;
protected $newsletterToken;
protected $gender;
protected $localeCode;
protected $registrationToken;
protected $user;
protected $phoneNumber;
protected $accessLevel;
protected $registerDate;
protected $registerSource;
protected $appUser;
protected $newsletterActive;
protected $magazineSubscribed;
protected $magazineSubscriptionDate;
protected $magazineIsActuallyNeed;
protected $spentMoney;
protected $spentMoneyBonus;
protected $birthDate;
protected $registeredWatches;
protected $nextEmailChangeAlert;
protected $nextEmailChangeAlertCounter;
protected $addressAccessType;
protected $addresses;
protected $backupAddresses;
protected $defaultAddress;
protected $customerGroups;
protected $lastLoginDate;
protected $lastLoginPlatform;
protected $pushNotifications;
protected $magazines;
protected $disabledEmailChangeAlert;
protected $gameRulesConsent;
/**
* @param array $values
* @return \Pimcore\Model\DataObject\CoreShopCustomer
*/
public static function create($values = array()) {
$object = new static();
$object->setValues($values);
return $object;
}
/**
* Get salutation - coreshop.customer.salutation
* @return string|null
*/
public function getSalutation(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("salutation");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->salutation;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set salutation - coreshop.customer.salutation
* @param string|null $salutation
* @return \Pimcore\Model\DataObject\CoreShopCustomer
*/
public function setSalutation(?string $salutation)
{
$this->salutation = $salutation;
return $this;
}
/**
* Get lastname - coreshop.customer.lastname
* @return string|null
*/
public function getLastname(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("lastname");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->lastname;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set lastname - coreshop.customer.lastname
* @param string|null $lastname
* @return \Pimcore\Model\DataObject\CoreShopCustomer
*/
public function setLastname(?string $lastname)
{
$this->lastname = $lastname;
return $this;
}
/**
* Get firstname - coreshop.customer.firstname
* @return string|null
*/
public function getFirstname(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("firstname");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->firstname;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set firstname - coreshop.customer.firstname
* @param string|null $firstname
* @return \Pimcore\Model\DataObject\CoreShopCustomer
*/
public function setFirstname(?string $firstname)
{
$this->firstname = $firstname;
return $this;
}
/**
* Get company - coreshop.customer.company
* @return ?\CoreShop\Component\Customer\Model\CompanyInterface
*/
public function getCompany(): ?\CoreShop\Component\Customer\Model\CompanyInterface
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("company");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("company")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set company - coreshop.customer.company
* @param ?\CoreShop\Component\Customer\Model\CompanyInterface $company
* @return \Pimcore\Model\DataObject\CoreShopCustomer
*/
public function setCompany(?\CoreShop\Component\Customer\Model\CompanyInterface $company)
{
/** @var \CoreShop\Bundle\ResourceBundle\CoreExtension\CoreShopRelation $fd */
$fd = $this->getClass()->getFieldDefinition("company");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getCompany();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $company);
if (!$isEqual) {
$this->markFieldDirty("company", true);
}
$this->company = $fd->preSetData($this, $company);
return $this;
}
/**
* Get email - coreshop.customer.email
* @return string|null
*/
public function getEmail(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("email");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->email;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set email - coreshop.customer.email
* @param string|null $email
* @return \Pimcore\Model\DataObject\CoreShopCustomer
*/
public function setEmail(?string $email)
{
$this->email = $email;
return $this;
}
/**
* Get newsletterConfirmed - coreshop.customer.newsletter_confirmed
* @return bool|null
*/
public function getNewsletterConfirmed(): ?bool
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("newsletterConfirmed");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->newsletterConfirmed;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set newsletterConfirmed - coreshop.customer.newsletter_confirmed
* @param bool|null $newsletterConfirmed
* @return \Pimcore\Model\DataObject\CoreShopCustomer
*/
public function setNewsletterConfirmed(?bool $newsletterConfirmed)
{
$this->newsletterConfirmed = $newsletterConfirmed;
return $this;
}
/**
* Get newsletterToken - Newsletter Token
* @return string|null
*/
public function getNewsletterToken(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("newsletterToken");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->newsletterToken;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set newsletterToken - Newsletter Token
* @param string|null $newsletterToken
* @return \Pimcore\Model\DataObject\CoreShopCustomer
*/
public function setNewsletterToken(?string $newsletterToken)
{
$this->newsletterToken = $newsletterToken;
return $this;
}
/**
* Get gender - coreshop.customer.gender
* @return string|null
*/
public function getGender(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("gender");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->gender;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set gender - coreshop.customer.gender
* @param string|null $gender
* @return \Pimcore\Model\DataObject\CoreShopCustomer
*/
public function setGender(?string $gender)
{
$this->gender = $gender;
return $this;
}
/**
* Get localeCode - coreshop.customer.locale
* @return string|null
*/
public function getLocaleCode(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("localeCode");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->localeCode;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set localeCode - coreshop.customer.locale
* @param string|null $localeCode
* @return \Pimcore\Model\DataObject\CoreShopCustomer
*/
public function setLocaleCode(?string $localeCode)
{
$this->localeCode = $localeCode;
return $this;
}
/**
* Get registrationToken - Registration Token
* @return string|null
*/
public function getRegistrationToken(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("registrationToken");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->registrationToken;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set registrationToken - Registration Token
* @param string|null $registrationToken
* @return \Pimcore\Model\DataObject\CoreShopCustomer
*/
public function setRegistrationToken(?string $registrationToken)
{
$this->registrationToken = $registrationToken;
return $this;
}
/**
* Get user - coreshop.customer.user
* @return ?\CoreShop\Component\User\Model\UserInterface
*/
public function getUser(): ?\CoreShop\Component\User\Model\UserInterface
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("user");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("user")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set user - coreshop.customer.user
* @param ?\CoreShop\Component\User\Model\UserInterface $user
* @return \Pimcore\Model\DataObject\CoreShopCustomer
*/
public function setUser(?\CoreShop\Component\User\Model\UserInterface $user)
{
/** @var \CoreShop\Bundle\ResourceBundle\CoreExtension\CoreShopRelation $fd */
$fd = $this->getClass()->getFieldDefinition("user");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getUser();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $user);
if (!$isEqual) {
$this->markFieldDirty("user", true);
}
$this->user = $fd->preSetData($this, $user);
return $this;
}
/**
* Get phoneNumber - Telefonszám
* @return string|null
*/
public function getPhoneNumber(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("phoneNumber");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->phoneNumber;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set phoneNumber - Telefonszám
* @param string|null $phoneNumber
* @return \Pimcore\Model\DataObject\CoreShopCustomer
*/
public function setPhoneNumber(?string $phoneNumber)
{
$this->phoneNumber = $phoneNumber;
return $this;
}
/**
* Get accessLevel - Tagsági szint
* @return string|null
*/
public function getAccessLevel(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("accessLevel");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->accessLevel;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set accessLevel - Tagsági szint
* @param string|null $accessLevel
* @return \Pimcore\Model\DataObject\CoreShopCustomer
*/
public function setAccessLevel(?string $accessLevel)
{
$this->accessLevel = $accessLevel;
return $this;
}
/**
* Get registerDate - Regisztráció dátuma
* @return \Carbon\Carbon|null
*/
public function getRegisterDate(): ?\Carbon\Carbon
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("registerDate");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->registerDate;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set registerDate - Regisztráció dátuma
* @param \Carbon\Carbon|null $registerDate
* @return \Pimcore\Model\DataObject\CoreShopCustomer
*/
public function setRegisterDate(?\Carbon\Carbon $registerDate)
{
$this->registerDate = $registerDate;
return $this;
}
/**
* Get registerSource - Regisztráció forrása
* @return string|null
*/
public function getRegisterSource(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("registerSource");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->registerSource;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set registerSource - Regisztráció forrása
* @param string|null $registerSource
* @return \Pimcore\Model\DataObject\CoreShopCustomer
*/
public function setRegisterSource(?string $registerSource)
{
$this->registerSource = $registerSource;
return $this;
}
/**
* Get appUser - App felhasználó
* @return bool|null
*/
public function getAppUser(): ?bool
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("appUser");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->appUser;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set appUser - App felhasználó
* @param bool|null $appUser
* @return \Pimcore\Model\DataObject\CoreShopCustomer
*/
public function setAppUser(?bool $appUser)
{
$this->appUser = $appUser;
return $this;
}
/**
* Get newsletterActive - coreshop.customer.newsletter_active
* @return bool|null
*/
public function getNewsletterActive(): ?bool
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("newsletterActive");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->newsletterActive;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set newsletterActive - coreshop.customer.newsletter_active
* @param bool|null $newsletterActive
* @return \Pimcore\Model\DataObject\CoreShopCustomer
*/
public function setNewsletterActive(?bool $newsletterActive)
{
$this->newsletterActive = $newsletterActive;
return $this;
}
/**
* Get magazineSubscribed - Magazin felirazkozás
* @return bool|null
*/
public function getMagazineSubscribed(): ?bool
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("magazineSubscribed");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->magazineSubscribed;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set magazineSubscribed - Magazin felirazkozás
* @param bool|null $magazineSubscribed
* @return \Pimcore\Model\DataObject\CoreShopCustomer
*/
public function setMagazineSubscribed(?bool $magazineSubscribed)
{
$this->magazineSubscribed = $magazineSubscribed;
return $this;
}
/**
* Get magazineSubscriptionDate - Magazine Subscription Date
* @return \Carbon\Carbon|null
*/
public function getMagazineSubscriptionDate(): ?\Carbon\Carbon
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("magazineSubscriptionDate");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->magazineSubscriptionDate;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set magazineSubscriptionDate - Magazine Subscription Date
* @param \Carbon\Carbon|null $magazineSubscriptionDate
* @return \Pimcore\Model\DataObject\CoreShopCustomer
*/
public function setMagazineSubscriptionDate(?\Carbon\Carbon $magazineSubscriptionDate)
{
$this->magazineSubscriptionDate = $magazineSubscriptionDate;
return $this;
}
/**
* Get magazineIsActuallyNeed - Magazine Is Actually Need
* @return bool|null
*/
public function getMagazineIsActuallyNeed(): ?bool
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("magazineIsActuallyNeed");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->magazineIsActuallyNeed;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set magazineIsActuallyNeed - Magazine Is Actually Need
* @param bool|null $magazineIsActuallyNeed
* @return \Pimcore\Model\DataObject\CoreShopCustomer
*/
public function setMagazineIsActuallyNeed(?bool $magazineIsActuallyNeed)
{
$this->magazineIsActuallyNeed = $magazineIsActuallyNeed;
return $this;
}
/**
* Get spentMoney - Vásárolt összeg
* @return int|null
*/
public function getSpentMoney(): ?int
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("spentMoney");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->spentMoney;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set spentMoney - Vásárolt összeg
* @param int|null $spentMoney
* @return \Pimcore\Model\DataObject\CoreShopCustomer
*/
public function setSpentMoney(?int $spentMoney)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
$fd = $this->getClass()->getFieldDefinition("spentMoney");
$this->spentMoney = $fd->preSetData($this, $spentMoney);
return $this;
}
/**
* Get spentMoneyBonus - Vásárlot összeg plusz
* @return int|null
*/
public function getSpentMoneyBonus(): ?int
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("spentMoneyBonus");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->spentMoneyBonus;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set spentMoneyBonus - Vásárlot összeg plusz
* @param int|null $spentMoneyBonus
* @return \Pimcore\Model\DataObject\CoreShopCustomer
*/
public function setSpentMoneyBonus(?int $spentMoneyBonus)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
$fd = $this->getClass()->getFieldDefinition("spentMoneyBonus");
$this->spentMoneyBonus = $fd->preSetData($this, $spentMoneyBonus);
return $this;
}
/**
* Get birthDate - Születési dátum
* @return \Carbon\Carbon|null
*/
public function getBirthDate(): ?\Carbon\Carbon
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("birthDate");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->birthDate;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set birthDate - Születési dátum
* @param \Carbon\Carbon|null $birthDate
* @return \Pimcore\Model\DataObject\CoreShopCustomer
*/
public function setBirthDate(?\Carbon\Carbon $birthDate)
{
$this->birthDate = $birthDate;
return $this;
}
/**
* Get registeredWatches - Registered Watches
* @return \Pimcore\Model\DataObject\Data\ObjectMetadata[]
*/
public function getRegisteredWatches(): array
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("registeredWatches");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("registeredWatches")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set registeredWatches - Registered Watches
* @param \Pimcore\Model\DataObject\Data\ObjectMetadata[] $registeredWatches
* @return \Pimcore\Model\DataObject\CoreShopCustomer
*/
public function setRegisteredWatches(?array $registeredWatches)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\AdvancedManyToManyObjectRelation $fd */
$fd = $this->getClass()->getFieldDefinition("registeredWatches");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getRegisteredWatches();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $registeredWatches);
if (!$isEqual) {
$this->markFieldDirty("registeredWatches", true);
}
$this->registeredWatches = $fd->preSetData($this, $registeredWatches);
return $this;
}
/**
* Get nextEmailChangeAlert - Következő emailcím változtatás figyelmeztetés dátuma
* @return \Carbon\Carbon|null
*/
public function getNextEmailChangeAlert(): ?\Carbon\Carbon
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("nextEmailChangeAlert");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->nextEmailChangeAlert;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set nextEmailChangeAlert - Következő emailcím változtatás figyelmeztetés dátuma
* @param \Carbon\Carbon|null $nextEmailChangeAlert
* @return \Pimcore\Model\DataObject\CoreShopCustomer
*/
public function setNextEmailChangeAlert(?\Carbon\Carbon $nextEmailChangeAlert)
{
$this->nextEmailChangeAlert = $nextEmailChangeAlert;
return $this;
}
/**
* Get nextEmailChangeAlertCounter - Next Email Change Alert Counter
* @return float|null
*/
public function getNextEmailChangeAlertCounter(): ?float
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("nextEmailChangeAlertCounter");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->nextEmailChangeAlertCounter;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set nextEmailChangeAlertCounter - Next Email Change Alert Counter
* @param float|null $nextEmailChangeAlertCounter
* @return \Pimcore\Model\DataObject\CoreShopCustomer
*/
public function setNextEmailChangeAlertCounter(?float $nextEmailChangeAlertCounter)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\Numeric $fd */
$fd = $this->getClass()->getFieldDefinition("nextEmailChangeAlertCounter");
$this->nextEmailChangeAlertCounter = $fd->preSetData($this, $nextEmailChangeAlertCounter);
return $this;
}
/**
* Get addressAccessType - coreshop.customer.address_access_type
* @return string|null
*/
public function getAddressAccessType(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("addressAccessType");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->addressAccessType;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set addressAccessType - coreshop.customer.address_access_type
* @param string|null $addressAccessType
* @return \Pimcore\Model\DataObject\CoreShopCustomer
*/
public function setAddressAccessType(?string $addressAccessType)
{
$this->addressAccessType = $addressAccessType;
return $this;
}
/**
* Get addresses - coreshop.customer.addresses
* @return ?\CoreShop\Component\Address\Model\AddressInterface[]
*/
public function getAddresses(): ?array
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("addresses");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("addresses")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set addresses - coreshop.customer.addresses
* @param ?\CoreShop\Component\Address\Model\AddressInterface[] $addresses
* @return \Pimcore\Model\DataObject\CoreShopCustomer
*/
public function setAddresses(?array $addresses)
{
/** @var \CoreShop\Bundle\ResourceBundle\CoreExtension\CoreShopRelations $fd */
$fd = $this->getClass()->getFieldDefinition("addresses");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getAddresses();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $addresses);
if (!$isEqual) {
$this->markFieldDirty("addresses", true);
}
$this->addresses = $fd->preSetData($this, $addresses);
return $this;
}
/**
* Get backupAddresses - Backup Addresses
* @return ?\CoreShop\Component\Address\Model\AddressInterface[]
*/
public function getBackupAddresses(): ?array
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("backupAddresses");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("backupAddresses")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set backupAddresses - Backup Addresses
* @param ?\CoreShop\Component\Address\Model\AddressInterface[] $backupAddresses
* @return \Pimcore\Model\DataObject\CoreShopCustomer
*/
public function setBackupAddresses(?array $backupAddresses)
{
/** @var \CoreShop\Bundle\ResourceBundle\CoreExtension\CoreShopRelations $fd */
$fd = $this->getClass()->getFieldDefinition("backupAddresses");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getBackupAddresses();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $backupAddresses);
if (!$isEqual) {
$this->markFieldDirty("backupAddresses", true);
}
$this->backupAddresses = $fd->preSetData($this, $backupAddresses);
return $this;
}
/**
* Get defaultAddress - coreshop.customer.default_address
* @return ?\CoreShop\Component\Address\Model\AddressInterface
*/
public function getDefaultAddress(): ?\CoreShop\Component\Address\Model\AddressInterface
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("defaultAddress");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("defaultAddress")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set defaultAddress - coreshop.customer.default_address
* @param ?\CoreShop\Component\Address\Model\AddressInterface $defaultAddress
* @return \Pimcore\Model\DataObject\CoreShopCustomer
*/
public function setDefaultAddress(?\CoreShop\Component\Address\Model\AddressInterface $defaultAddress)
{
/** @var \CoreShop\Bundle\ResourceBundle\CoreExtension\CoreShopRelation $fd */
$fd = $this->getClass()->getFieldDefinition("defaultAddress");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getDefaultAddress();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $defaultAddress);
if (!$isEqual) {
$this->markFieldDirty("defaultAddress", true);
}
$this->defaultAddress = $fd->preSetData($this, $defaultAddress);
return $this;
}
/**
* Get customerGroups - coreshop.customer.groups
* @return ?\CoreShop\Component\Customer\Model\CustomerGroupInterface[]
*/
public function getCustomerGroups(): ?array
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("customerGroups");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("customerGroups")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set customerGroups - coreshop.customer.groups
* @param ?\CoreShop\Component\Customer\Model\CustomerGroupInterface[] $customerGroups
* @return \Pimcore\Model\DataObject\CoreShopCustomer
*/
public function setCustomerGroups(?array $customerGroups)
{
/** @var \CoreShop\Bundle\ResourceBundle\CoreExtension\CoreShopRelations $fd */
$fd = $this->getClass()->getFieldDefinition("customerGroups");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getCustomerGroups();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $customerGroups);
if (!$isEqual) {
$this->markFieldDirty("customerGroups", true);
}
$this->customerGroups = $fd->preSetData($this, $customerGroups);
return $this;
}
/**
* Get lastLoginDate - Utolsó bejelentkezés
* @return \Carbon\Carbon|null
*/
public function getLastLoginDate(): ?\Carbon\Carbon
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("lastLoginDate");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->lastLoginDate;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set lastLoginDate - Utolsó bejelentkezés
* @param \Carbon\Carbon|null $lastLoginDate
* @return \Pimcore\Model\DataObject\CoreShopCustomer
*/
public function setLastLoginDate(?\Carbon\Carbon $lastLoginDate)
{
$this->lastLoginDate = $lastLoginDate;
return $this;
}
/**
* Get lastLoginPlatform - Platform
* @return string|null
*/
public function getLastLoginPlatform(): ?string
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("lastLoginPlatform");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->lastLoginPlatform;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set lastLoginPlatform - Platform
* @param string|null $lastLoginPlatform
* @return \Pimcore\Model\DataObject\CoreShopCustomer
*/
public function setLastLoginPlatform(?string $lastLoginPlatform)
{
$this->lastLoginPlatform = $lastLoginPlatform;
return $this;
}
/**
* Get pushNotifications - Push Notifications
* @return \Pimcore\Model\DataObject\Data\ObjectMetadata[]
*/
public function getPushNotifications(): array
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("pushNotifications");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("pushNotifications")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set pushNotifications - Push Notifications
* @param \Pimcore\Model\DataObject\Data\ObjectMetadata[] $pushNotifications
* @return \Pimcore\Model\DataObject\CoreShopCustomer
*/
public function setPushNotifications(?array $pushNotifications)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\AdvancedManyToManyObjectRelation $fd */
$fd = $this->getClass()->getFieldDefinition("pushNotifications");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getPushNotifications();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $pushNotifications);
if (!$isEqual) {
$this->markFieldDirty("pushNotifications", true);
}
$this->pushNotifications = $fd->preSetData($this, $pushNotifications);
return $this;
}
/**
* Get magazines - Magazinok
* @return \Pimcore\Model\DataObject\Data\ObjectMetadata[]
*/
public function getMagazines(): array
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("magazines");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->getClass()->getFieldDefinition("magazines")->preGetData($this);
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set magazines - Magazinok
* @param \Pimcore\Model\DataObject\Data\ObjectMetadata[] $magazines
* @return \Pimcore\Model\DataObject\CoreShopCustomer
*/
public function setMagazines(?array $magazines)
{
/** @var \Pimcore\Model\DataObject\ClassDefinition\Data\AdvancedManyToManyObjectRelation $fd */
$fd = $this->getClass()->getFieldDefinition("magazines");
$hideUnpublished = \Pimcore\Model\DataObject\Concrete::getHideUnpublished();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished(false);
$currentData = $this->getMagazines();
\Pimcore\Model\DataObject\Concrete::setHideUnpublished($hideUnpublished);
$isEqual = $fd->isEqual($currentData, $magazines);
if (!$isEqual) {
$this->markFieldDirty("magazines", true);
}
$this->magazines = $fd->preSetData($this, $magazines);
return $this;
}
/**
* Get disabledEmailChangeAlert - Email változtatás figyelmeztetés kikapcsolva
* @return bool|null
*/
public function getDisabledEmailChangeAlert(): ?bool
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("disabledEmailChangeAlert");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->disabledEmailChangeAlert;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set disabledEmailChangeAlert - Email változtatás figyelmeztetés kikapcsolva
* @param bool|null $disabledEmailChangeAlert
* @return \Pimcore\Model\DataObject\CoreShopCustomer
*/
public function setDisabledEmailChangeAlert(?bool $disabledEmailChangeAlert)
{
$this->disabledEmailChangeAlert = $disabledEmailChangeAlert;
return $this;
}
/**
* Get gameRulesConsent - Játékszabályzat beleegyezés
* @return bool|null
*/
public function getGameRulesConsent(): ?bool
{
if ($this instanceof PreGetValueHookInterface && !\Pimcore::inAdmin()) {
$preValue = $this->preGetValue("gameRulesConsent");
if ($preValue !== null) {
return $preValue;
}
}
$data = $this->gameRulesConsent;
if ($data instanceof \Pimcore\Model\DataObject\Data\EncryptedField) {
return $data->getPlain();
}
return $data;
}
/**
* Set gameRulesConsent - Játékszabályzat beleegyezés
* @param bool|null $gameRulesConsent
* @return \Pimcore\Model\DataObject\CoreShopCustomer
*/
public function setGameRulesConsent(?bool $gameRulesConsent)
{
$this->gameRulesConsent = $gameRulesConsent;
return $this;
}
}