custom/plugins/SwagCustomizedProducts/src/Template/TemplateEntity.php line 19

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. /*
  3.  * (c) shopware AG <info@shopware.com>
  4.  * For the full copyright and license information, please view the LICENSE
  5.  * file that was distributed with this source code.
  6.  */
  7. namespace Swag\CustomizedProducts\Template;
  8. use Shopware\Core\Content\Media\MediaEntity;
  9. use Shopware\Core\Content\Product\ProductCollection;
  10. use Shopware\Core\Framework\DataAbstractionLayer\Entity;
  11. use Shopware\Core\Framework\DataAbstractionLayer\EntityIdTrait;
  12. use Swag\CustomizedProducts\Template\Aggregate\TemplateConfiguration\TemplateConfigurationCollection;
  13. use Swag\CustomizedProducts\Template\Aggregate\TemplateExclusion\TemplateExclusionCollection;
  14. use Swag\CustomizedProducts\Template\Aggregate\TemplateOption\TemplateOptionCollection;
  15. use Swag\CustomizedProducts\Template\Aggregate\TemplateTranslation\TemplateTranslationCollection;
  16. class TemplateEntity extends Entity
  17. {
  18.     use EntityIdTrait;
  19.     /**
  20.      * @var string
  21.      */
  22.     protected $internalName;
  23.     /**
  24.      * @var string|null
  25.      */
  26.     protected $displayName;
  27.     /**
  28.      * @var string|null
  29.      */
  30.     protected $description;
  31.     /**
  32.      * @var string|null
  33.      */
  34.     protected $mediaId;
  35.     /**
  36.      * @var bool
  37.      */
  38.     protected $active;
  39.     /**
  40.      * @var bool
  41.      */
  42.     protected $stepByStep;
  43.     /**
  44.      * @var bool
  45.      */
  46.     protected $confirmInput;
  47.     /**
  48.      * @var bool
  49.      */
  50.     protected $optionsAutoCollapse;
  51.     /**
  52.      * @var array|null
  53.      */
  54.     protected $decisionTree;
  55.     /**
  56.      * @var TemplateTranslationCollection|null
  57.      */
  58.     protected $translations;
  59.     /**
  60.      * @var MediaEntity|null
  61.      */
  62.     protected $media;
  63.     /**
  64.      * @var TemplateOptionCollection|null
  65.      */
  66.     protected $options;
  67.     /**
  68.      * @var ProductCollection|null
  69.      */
  70.     protected $products;
  71.     /**
  72.      * @var TemplateExclusionCollection|null
  73.      */
  74.     protected $exclusions;
  75.     /**
  76.      * @var TemplateConfigurationCollection|null
  77.      */
  78.     protected $configurations;
  79.     public function getInternalName(): string
  80.     {
  81.         return $this->internalName;
  82.     }
  83.     public function setInternalName(string $internalName): void
  84.     {
  85.         $this->internalName $internalName;
  86.     }
  87.     public function getDisplayName(): ?string
  88.     {
  89.         return $this->displayName;
  90.     }
  91.     public function setDisplayName(?string $displayName): void
  92.     {
  93.         $this->displayName $displayName;
  94.     }
  95.     public function getDescription(): ?string
  96.     {
  97.         return $this->description;
  98.     }
  99.     public function setDescription(?string $description): void
  100.     {
  101.         $this->description $description;
  102.     }
  103.     public function getMediaId(): ?string
  104.     {
  105.         return $this->mediaId;
  106.     }
  107.     public function setMediaId(?string $mediaId): void
  108.     {
  109.         $this->mediaId $mediaId;
  110.     }
  111.     public function isActive(): bool
  112.     {
  113.         return $this->active;
  114.     }
  115.     public function setActive(bool $active): void
  116.     {
  117.         $this->active $active;
  118.     }
  119.     public function isStepByStep(): bool
  120.     {
  121.         return $this->stepByStep;
  122.     }
  123.     public function setStepByStep(bool $stepByStep): void
  124.     {
  125.         $this->stepByStep $stepByStep;
  126.     }
  127.     public function isConfirmInput(): bool
  128.     {
  129.         return $this->confirmInput;
  130.     }
  131.     public function setConfirmInput(bool $confirmInput): void
  132.     {
  133.         $this->confirmInput $confirmInput;
  134.     }
  135.     public function isOptionsAutoCollapse(): bool
  136.     {
  137.         return $this->optionsAutoCollapse;
  138.     }
  139.     public function setOptionsAutoCollapse(bool $optionsAutoCollapse): void
  140.     {
  141.         $this->optionsAutoCollapse $optionsAutoCollapse;
  142.     }
  143.     public function getTranslations(): ?TemplateTranslationCollection
  144.     {
  145.         return $this->translations;
  146.     }
  147.     public function setTranslations(TemplateTranslationCollection $translations): void
  148.     {
  149.         $this->translations $translations;
  150.     }
  151.     public function getMedia(): ?MediaEntity
  152.     {
  153.         return $this->media;
  154.     }
  155.     public function setMedia(?MediaEntity $media): void
  156.     {
  157.         $this->media $media;
  158.     }
  159.     public function getOptions(): ?TemplateOptionCollection
  160.     {
  161.         return $this->options;
  162.     }
  163.     public function setOptions(TemplateOptionCollection $options): void
  164.     {
  165.         $this->options $options;
  166.     }
  167.     public function getProducts(): ?ProductCollection
  168.     {
  169.         return $this->products;
  170.     }
  171.     public function setProducts(ProductCollection $products): void
  172.     {
  173.         $this->products $products;
  174.     }
  175.     public function getExclusions(): ?TemplateExclusionCollection
  176.     {
  177.         return $this->exclusions;
  178.     }
  179.     public function setExclusions(TemplateExclusionCollection $exclusions): void
  180.     {
  181.         $this->exclusions $exclusions;
  182.     }
  183.     public function getConfigurations(): ?TemplateConfigurationCollection
  184.     {
  185.         return $this->configurations;
  186.     }
  187.     public function setConfigurations(TemplateConfigurationCollection $configurations): void
  188.     {
  189.         $this->configurations $configurations;
  190.     }
  191.     public function getDecisionTree(): ?array
  192.     {
  193.         return $this->decisionTree;
  194.     }
  195.     public function setDecisionTree(array $decisionTree): void
  196.     {
  197.         $this->decisionTree $decisionTree;
  198.     }
  199. }