vendor/shopware/core/System/Salutation/SalutationEntity.php line 15

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Shopware\Core\System\Salutation;
  3. use Shopware\Core\Checkout\Customer\Aggregate\CustomerAddress\CustomerAddressCollection;
  4. use Shopware\Core\Checkout\Customer\CustomerCollection;
  5. use Shopware\Core\Checkout\Order\Aggregate\OrderAddress\OrderAddressCollection;
  6. use Shopware\Core\Checkout\Order\Aggregate\OrderCustomer\OrderCustomerCollection;
  7. use Shopware\Core\Content\Newsletter\Aggregate\NewsletterRecipient\NewsletterRecipientCollection;
  8. use Shopware\Core\Framework\DataAbstractionLayer\Entity;
  9. use Shopware\Core\Framework\DataAbstractionLayer\EntityCustomFieldsTrait;
  10. use Shopware\Core\Framework\DataAbstractionLayer\EntityIdTrait;
  11. use Shopware\Core\System\Salutation\Aggregate\SalutationTranslation\SalutationTranslationCollection;
  12. class SalutationEntity extends Entity
  13. {
  14.     use EntityIdTrait;
  15.     use EntityCustomFieldsTrait;
  16.     /**
  17.      * @var string|null
  18.      */
  19.     protected $salutationKey;
  20.     /**
  21.      * @var string|null
  22.      */
  23.     protected $displayName;
  24.     /**
  25.      * @var string|null
  26.      */
  27.     protected $letterName;
  28.     /**
  29.      * @var SalutationTranslationCollection|null
  30.      */
  31.     protected $translations;
  32.     /**
  33.      * @var CustomerCollection|null
  34.      */
  35.     protected $customers;
  36.     /**
  37.      * @var CustomerAddressCollection|null
  38.      */
  39.     protected $customerAddresses;
  40.     /**
  41.      * @var OrderCustomerCollection|null
  42.      */
  43.     protected $orderCustomers;
  44.     /**
  45.      * @var OrderAddressCollection|null
  46.      */
  47.     protected $orderAddresses;
  48.     /**
  49.      * @var NewsletterRecipientCollection|null
  50.      */
  51.     protected $newsletterRecipients;
  52.     public function getSalutationKey(): ?string
  53.     {
  54.         return $this->salutationKey;
  55.     }
  56.     public function setSalutationKey(string $salutationKey): void
  57.     {
  58.         $this->salutationKey $salutationKey;
  59.     }
  60.     public function getDisplayName(): ?string
  61.     {
  62.         return $this->displayName;
  63.     }
  64.     public function setDisplayName(?string $displayName): void
  65.     {
  66.         $this->displayName $displayName;
  67.     }
  68.     public function getLetterName(): ?string
  69.     {
  70.         return $this->letterName;
  71.     }
  72.     public function setLetterName(?string $letterName): void
  73.     {
  74.         $this->letterName $letterName;
  75.     }
  76.     public function getTranslations(): ?SalutationTranslationCollection
  77.     {
  78.         return $this->translations;
  79.     }
  80.     public function setTranslations(SalutationTranslationCollection $translations): void
  81.     {
  82.         $this->translations $translations;
  83.     }
  84.     public function getCustomers(): ?CustomerCollection
  85.     {
  86.         return $this->customers;
  87.     }
  88.     public function setCustomers(CustomerCollection $customers): void
  89.     {
  90.         $this->customers $customers;
  91.     }
  92.     public function getCustomerAddresses(): ?CustomerAddressCollection
  93.     {
  94.         return $this->customerAddresses;
  95.     }
  96.     public function setCustomerAddresses(CustomerAddressCollection $customerAddresses): void
  97.     {
  98.         $this->customerAddresses $customerAddresses;
  99.     }
  100.     public function getOrderCustomers(): ?OrderCustomerCollection
  101.     {
  102.         return $this->orderCustomers;
  103.     }
  104.     public function setOrderCustomers(OrderCustomerCollection $orderCustomers): void
  105.     {
  106.         $this->orderCustomers $orderCustomers;
  107.     }
  108.     public function getOrderAddresses(): ?OrderAddressCollection
  109.     {
  110.         return $this->orderAddresses;
  111.     }
  112.     public function setOrderAddresses(OrderAddressCollection $orderAddresses): void
  113.     {
  114.         $this->orderAddresses $orderAddresses;
  115.     }
  116.     public function getNewsletterRecipients(): ?NewsletterRecipientCollection
  117.     {
  118.         return $this->newsletterRecipients;
  119.     }
  120.     public function setNewsletterRecipients(NewsletterRecipientCollection $newsletterRecipients): void
  121.     {
  122.         $this->newsletterRecipients $newsletterRecipients;
  123.     }
  124. }