vendor/shopware/core/Checkout/Customer/Aggregate/CustomerGroup/CustomerGroupEntity.php line 11

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Shopware\Core\Checkout\Customer\Aggregate\CustomerGroup;
  3. use Shopware\Core\Checkout\Customer\Aggregate\CustomerGroupTranslation\CustomerGroupTranslationCollection;
  4. use Shopware\Core\Checkout\Customer\CustomerCollection;
  5. use Shopware\Core\Framework\DataAbstractionLayer\Entity;
  6. use Shopware\Core\Framework\DataAbstractionLayer\EntityIdTrait;
  7. use Shopware\Core\System\SalesChannel\SalesChannelCollection;
  8. class CustomerGroupEntity extends Entity
  9. {
  10.     use EntityIdTrait;
  11.     /**
  12.      * @var string|null
  13.      */
  14.     protected $name;
  15.     /**
  16.      * @var bool
  17.      */
  18.     protected $displayGross;
  19.     /**
  20.      * @var CustomerGroupTranslationCollection|null
  21.      */
  22.     protected $translations;
  23.     /**
  24.      * @var CustomerCollection|null
  25.      */
  26.     protected $customers;
  27.     /**
  28.      * @var array|null
  29.      */
  30.     protected $customFields;
  31.     /**
  32.      * @var SalesChannelCollection|null
  33.      */
  34.     protected $salesChannels;
  35.     public function getName(): ?string
  36.     {
  37.         return $this->name;
  38.     }
  39.     public function setName(?string $name): void
  40.     {
  41.         $this->name $name;
  42.     }
  43.     public function getDisplayGross(): bool
  44.     {
  45.         return $this->displayGross;
  46.     }
  47.     public function setDisplayGross(bool $displayGross): void
  48.     {
  49.         $this->displayGross $displayGross;
  50.     }
  51.     public function getTranslations(): ?CustomerGroupTranslationCollection
  52.     {
  53.         return $this->translations;
  54.     }
  55.     public function setTranslations(CustomerGroupTranslationCollection $translations): void
  56.     {
  57.         $this->translations $translations;
  58.     }
  59.     public function getCustomers(): ?CustomerCollection
  60.     {
  61.         return $this->customers;
  62.     }
  63.     public function setCustomers(CustomerCollection $customers): void
  64.     {
  65.         $this->customers $customers;
  66.     }
  67.     public function getCustomFields(): ?array
  68.     {
  69.         return $this->customFields;
  70.     }
  71.     public function setCustomFields(?array $attributes): void
  72.     {
  73.         $this->customFields $attributes;
  74.     }
  75.     public function getSalesChannels(): ?SalesChannelCollection
  76.     {
  77.         return $this->salesChannels;
  78.     }
  79.     public function setSalesChannels(SalesChannelCollection $salesChannels): void
  80.     {
  81.         $this->salesChannels $salesChannels;
  82.     }
  83.     public function getApiAlias(): string
  84.     {
  85.         return 'customer_group';
  86.     }
  87. }