custom/plugins/NetiNextEasyCouponDesigns/src/Core/Content/Design/DesignEntity.php line 44

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace NetInventors\NetiNextEasyCouponDesigns\Core\Content\Design;
  4. use NetInventors\NetiNextEasyCoupon\Core\Content\Product\Aggregate\EasyCouponProductCollection;
  5. use NetInventors\NetiNextEasyCouponDesigns\Core\Content\Design\Aggregate\Image\ImageCollection;
  6. use NetInventors\NetiNextEasyCouponDesigns\Core\Content\Design\Aggregate\Pdf\PdfEntity;
  7. use NetInventors\NetiNextEasyCouponDesigns\Core\Content\Design\Aggregate\Task\TaskCollection;
  8. use NetInventors\NetiNextEasyCouponDesigns\Core\Content\Design\Aggregate\Translation\TranslationCollection;
  9. use NetInventors\NetiNextEasyCouponDesigns\Core\Content\Design\Aggregate\Variant\VariantCollection;
  10. use Shopware\Core\Content\Media\MediaEntity;
  11. use Shopware\Core\Framework\DataAbstractionLayer\Entity;
  12. use Shopware\Core\Framework\DataAbstractionLayer\EntityIdTrait;
  13. class DesignEntity extends Entity
  14. {
  15.     use EntityIdTrait;
  16.     protected bool                        $deleted;
  17.     protected bool                        $active;
  18.     protected string                      $title;
  19.     protected ?string                     $description;
  20.     protected string                      $version;
  21.     protected TranslationCollection       $translations;
  22.     protected EasyCouponProductCollection $easyCouponProducts;
  23.     protected TaskCollection              $tasks;
  24.     protected VariantCollection           $variants;
  25.     public function __construct()
  26.     {
  27.         $this->translations       = new TranslationCollection();
  28.         $this->easyCouponProducts = new EasyCouponProductCollection();
  29.         $this->tasks              = new TaskCollection();
  30.         $this->images             = new ImageCollection();
  31.         $this->variants           = new VariantCollection();
  32.     }
  33.     public function isDeleted(): bool
  34.     {
  35.         return $this->deleted;
  36.     }
  37.     public function setDeleted(bool $deleted): void
  38.     {
  39.         $this->deleted $deleted;
  40.     }
  41.     public function isActive(): bool
  42.     {
  43.         return $this->active;
  44.     }
  45.     public function setActive(bool $active): void
  46.     {
  47.         $this->active $active;
  48.     }
  49.     public function getTitle(): string
  50.     {
  51.         return $this->title;
  52.     }
  53.     public function setTitle(string $title): void
  54.     {
  55.         $this->title $title;
  56.     }
  57.     public function getDescription(): ?string
  58.     {
  59.         return $this->description;
  60.     }
  61.     public function setDescription(?string $description): void
  62.     {
  63.         $this->description $description;
  64.     }
  65.     public function getVersion(): string
  66.     {
  67.         return $this->version;
  68.     }
  69.     public function setVersion(string $version): void
  70.     {
  71.         $this->version $version;
  72.     }
  73.     public function getTranslations(): TranslationCollection
  74.     {
  75.         return $this->translations;
  76.     }
  77.     public function setTranslations(TranslationCollection $translations): void
  78.     {
  79.         $this->translations $translations;
  80.     }
  81.     public function getEasyCouponProducts(): EasyCouponProductCollection
  82.     {
  83.         return $this->easyCouponProducts;
  84.     }
  85.     public function setEasyCouponProducts(EasyCouponProductCollection $easyCouponProducts): void
  86.     {
  87.         $this->easyCouponProducts $easyCouponProducts;
  88.     }
  89.     public function getTasks(): TaskCollection
  90.     {
  91.         return $this->tasks;
  92.     }
  93.     public function setTasks(TaskCollection $tasks): void
  94.     {
  95.         $this->tasks $tasks;
  96.     }
  97.     public function setVariants(VariantCollection $variants): DesignEntity
  98.     {
  99.         $this->variants $variants;
  100.         return $this;
  101.     }
  102.     /**
  103.      * @psalm-mutation-free
  104.      */
  105.     public function getVariants(): VariantCollection
  106.     {
  107.         return $this->variants;
  108.     }
  109. }