vendor/shopware/core/System/Unit/UnitEntity.php line 11

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Shopware\Core\System\Unit;
  3. use Shopware\Core\Content\Product\ProductCollection;
  4. use Shopware\Core\Framework\DataAbstractionLayer\Entity;
  5. use Shopware\Core\Framework\DataAbstractionLayer\EntityCustomFieldsTrait;
  6. use Shopware\Core\Framework\DataAbstractionLayer\EntityIdTrait;
  7. use Shopware\Core\System\Unit\Aggregate\UnitTranslation\UnitTranslationCollection;
  8. class UnitEntity extends Entity
  9. {
  10.     use EntityIdTrait;
  11.     use EntityCustomFieldsTrait;
  12.     /**
  13.      * @var string|null
  14.      */
  15.     protected $shortCode;
  16.     /**
  17.      * @var string|null
  18.      */
  19.     protected $name;
  20.     /**
  21.      * @var UnitTranslationCollection|null
  22.      */
  23.     protected $translations;
  24.     /**
  25.      * @var ProductCollection|null
  26.      */
  27.     protected $products;
  28.     public function getShortCode(): ?string
  29.     {
  30.         return $this->shortCode;
  31.     }
  32.     public function setShortCode(?string $shortCode): void
  33.     {
  34.         $this->shortCode $shortCode;
  35.     }
  36.     public function getName(): ?string
  37.     {
  38.         return $this->name;
  39.     }
  40.     public function setName(?string $name): void
  41.     {
  42.         $this->name $name;
  43.     }
  44.     public function getTranslations(): ?UnitTranslationCollection
  45.     {
  46.         return $this->translations;
  47.     }
  48.     public function setTranslations(UnitTranslationCollection $translations): void
  49.     {
  50.         $this->translations $translations;
  51.     }
  52.     public function getProducts(): ?ProductCollection
  53.     {
  54.         return $this->products;
  55.     }
  56.     public function setProducts(ProductCollection $products): void
  57.     {
  58.         $this->products $products;
  59.     }
  60. }