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

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