custom/plugins/GbmedEnev/src/Core/Content/Enev/EnevEntity.php line 23

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. /**
  3.  * gb media
  4.  * All Rights Reserved.
  5.  *
  6.  * Unauthorized copying of this file, via any medium is strictly prohibited.
  7.  * The content of this file is proprietary and confidential.
  8.  *
  9.  * @category       Shopware
  10.  * @package        Shopware_Plugins
  11.  * @subpackage     GbmedEnev
  12.  * @copyright      Copyright (c) 2019, gb media
  13.  * @license        proprietary
  14.  * @author         Giuseppe Bottino
  15.  * @link           http://www.gb-media.biz
  16.  */
  17. namespace Gbmed\Enev\Core\Content\Enev;
  18. use Shopware\Core\Framework\DataAbstractionLayer\Entity;
  19. use Shopware\Core\Framework\DataAbstractionLayer\EntityIdTrait;
  20. class EnevEntity extends Entity
  21. {
  22.     use EntityIdTrait;
  23.     /**
  24.      * @var string
  25.      */
  26.     protected $productId;
  27.     /**
  28.      * @var bool
  29.      */
  30.     protected $active;
  31.     /**
  32.      * @var int
  33.      */
  34.     protected $position;
  35.     /**
  36.      * @var string
  37.      */
  38.     protected $class;
  39.     /**
  40.      * @var string|null
  41.      */
  42.     protected $spectrumFrom;
  43.     /**
  44.      * @var string|null
  45.      */
  46.     protected $spectrumTo;
  47.     /**
  48.      * @var string
  49.      */
  50.     protected $color;
  51.     /**
  52.      * @var string|null
  53.      */
  54.     protected $mediaId;
  55.     /**
  56.      * @var string|null
  57.      */
  58.     protected $datasheetId;
  59.     /**
  60.      * @var string|null
  61.      */
  62.     protected $iconId;
  63.     /**
  64.      * @var int|null
  65.      */
  66.     protected $eprelId;
  67.     /**
  68.      * @var string|null
  69.      */
  70.     protected $eprelGroup;
  71.     /**
  72.      * @var string|null
  73.      */
  74.     protected $eprelMedia;
  75.     /**
  76.      * @var string|null
  77.      */
  78.     protected $eprelDatasheed;
  79.     /**
  80.      * @var bool
  81.      */
  82.     protected $oldRegulation;
  83.     /**
  84.      * @return string
  85.      */
  86.     public function getProductId(): string
  87.     {
  88.         return $this->productId;
  89.     }
  90.     /**
  91.      * @param string $productId
  92.      */
  93.     public function setProductId(string $productId): void
  94.     {
  95.         $this->productId $productId;
  96.     }
  97.     /**
  98.      * @return bool
  99.      */
  100.     public function isActive(): bool
  101.     {
  102.         return $this->active;
  103.     }
  104.     /**
  105.      * @return bool
  106.      */
  107.     public function getActive(): bool
  108.     {
  109.         return $this->active;
  110.     }
  111.     /**
  112.      * @param bool $active
  113.      */
  114.     public function setActive(bool $active): void
  115.     {
  116.         $this->active $active;
  117.     }
  118.     /**
  119.      * @return int
  120.      */
  121.     public function getPosition(): int
  122.     {
  123.         return $this->position;
  124.     }
  125.     /**
  126.      * @param int $position
  127.      */
  128.     public function setPosition(int $position): void
  129.     {
  130.         $this->position $position;
  131.     }
  132.     /**
  133.      * @return string
  134.      */
  135.     public function getClass(): string
  136.     {
  137.         return $this->class;
  138.     }
  139.     /**
  140.      * @param string $class
  141.      */
  142.     public function setClass(string $class): void
  143.     {
  144.         $this->class $class;
  145.     }
  146.     /**
  147.      * @return string|null
  148.      */
  149.     public function getSpectrumFrom(): ?string
  150.     {
  151.         return $this->spectrumFrom;
  152.     }
  153.     /**
  154.      * @param string|null $spectrum_from
  155.      */
  156.     public function setSpectrumFrom(?string $spectrum_from): void
  157.     {
  158.         $this->spectrumFrom $spectrum_from;
  159.     }
  160.     /**
  161.      * @return string|null
  162.      */
  163.     public function getSpectrumTo(): ?string
  164.     {
  165.         return $this->spectrumTo;
  166.     }
  167.     /**
  168.      * @param string|null $spectrum_to
  169.      */
  170.     public function setSpectrumTo(?string $spectrum_to): void
  171.     {
  172.         $this->spectrumTo $spectrum_to;
  173.     }
  174.     /**
  175.      * @return string
  176.      */
  177.     public function getColor(): string
  178.     {
  179.         return strtolower($this->color);
  180.     }
  181.     /**
  182.      * @param string $color
  183.      */
  184.     public function setColor(string $color): void
  185.     {
  186.         $this->color strtolower($color);
  187.     }
  188.     /**
  189.      * @return string|null
  190.      */
  191.     public function getMediaId(): ?string
  192.     {
  193.         return $this->mediaId;
  194.     }
  195.     /**
  196.      * @param string|null $mediaId
  197.      */
  198.     public function setMediaId(?string $mediaId): void
  199.     {
  200.         $this->mediaId $mediaId;
  201.     }
  202.     /**
  203.      * @return string|null
  204.      */
  205.     public function getDatasheetId(): ?string
  206.     {
  207.         return $this->datasheetId;
  208.     }
  209.     /**
  210.      * @param string|null $datasheetId
  211.      */
  212.     public function setDatasheetId(?string $datasheetId): void
  213.     {
  214.         $this->datasheetId $datasheetId;
  215.     }
  216.     /**
  217.      * @return string|null
  218.      */
  219.     public function getIconId(): ?string
  220.     {
  221.         return $this->iconId;
  222.     }
  223.     /**
  224.      * @param string|null $iconId
  225.      */
  226.     public function setIconId(?string $iconId): void
  227.     {
  228.         $this->iconId $iconId;
  229.     }
  230.     /**
  231.      * @return int|null
  232.      */
  233.     public function getEprelId(): ?int
  234.     {
  235.         return $this->eprelId;
  236.     }
  237.     /**
  238.      * @param int|null $eprelId
  239.      */
  240.     public function setEprelId(?int $eprelId): void
  241.     {
  242.         $this->eprelId $eprelId;
  243.     }
  244.     /**
  245.      * @return string|null
  246.      */
  247.     public function getEprelGroup(): ?string
  248.     {
  249.         return $this->eprelGroup;
  250.     }
  251.     /**
  252.      * @param string|null $eprelGroup
  253.      */
  254.     public function setEprelGroup(?string $eprelGroup): void
  255.     {
  256.         $this->eprelGroup $eprelGroup;
  257.     }
  258.     /**
  259.      * @return string|null
  260.      */
  261.     public function getEprelMedia(): ?string
  262.     {
  263.         return $this->eprelMedia;
  264.     }
  265.     /**
  266.      * @param string|null $eprelMedia
  267.      */
  268.     public function setEprelMedia(?string $eprelMedia): void
  269.     {
  270.         $this->eprelMedia $eprelMedia;
  271.     }
  272.     /**
  273.      * @return string|null
  274.      */
  275.     public function getEprelDatasheed(): ?string
  276.     {
  277.         return $this->eprelDatasheed;
  278.     }
  279.     /**
  280.      * @param string|null $eprelDatasheed
  281.      */
  282.     public function setEprelDatasheed(?string $eprelDatasheed): void
  283.     {
  284.         $this->eprelDatasheed $eprelDatasheed;
  285.     }
  286.     /**
  287.      * @return bool
  288.      */
  289.     public function isOldRegulation(): bool
  290.     {
  291.         return $this->oldRegulation;
  292.     }
  293.     /**
  294.      * @param bool $oldRegulation
  295.      */
  296.     public function setOldRegulation(bool $oldRegulation): void
  297.     {
  298.         $this->oldRegulation $oldRegulation;
  299.     }
  300. }