src/Entity/ProductParameterGroup.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\DBAL\Types\Types;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Gedmo\Mapping\Annotation as Gedmo;
  6. use Gedmo\Translatable\Translatable;
  7. /**
  8.  * @ORM\Entity(repositoryClass="App\EntityRepo\ProductParameterGroupRepo")
  9.  * @ORM\Table(name="product_parameter_group")
  10.  * @Gedmo\TranslationEntity(class="App\Entity\ProductParameterGroupTranslation")
  11.  */
  12. class ProductParameterGroup implements Translatable
  13. {
  14.     const PARAMTYPE = array('PARAMTYPE_TEXT' => 0'PARAMTYPE_CHOICES' => 1'PARAMTYPE_TRUEFALSE' => 2);
  15.     /**
  16.      * @ORM\Column(type="integer")
  17.      * @ORM\Id
  18.      * @ORM\GeneratedValue(strategy="AUTO")
  19.      */ 
  20.     protected $productParameterGroupId=0;
  21.     
  22.     /**
  23.      * @Gedmo\Translatable
  24.      * @ORM\Column(type="string", length=255, nullable=true)
  25.      */
  26.     protected $productParameterGroupName;
  27.     
  28.     /**
  29.      * @Gedmo\Translatable
  30.      * @ORM\Column(type="text", nullable=true)
  31.      */
  32.     protected $productParameterGroupDescription;    
  33.     
  34.     /**
  35.      * @ORM\Column(type="string", length=100, nullable=true)
  36.      */
  37.     protected $productParameterKey;  
  38.     /**
  39.      * @ORM\Column(type="integer", nullable=true)
  40.      */
  41.     protected $priority;  
  42.     /**
  43.      * Post locale
  44.      * Used locale to override Translation listener's locale
  45.      *
  46.      * @Gedmo\Locale
  47.      * 
  48.      */
  49.     protected $locale
  50.     
  51.     /**
  52.      * @ORM\Column(type="boolean", nullable=true)
  53.      */
  54.     protected $isVisible=true;        
  55.     /**
  56.      * Set locale
  57.      *
  58.      * @param string $locale
  59.      *
  60.      * @return Product
  61.      */
  62.     public function setLocale($locale)
  63.     {
  64.         $this->locale $locale;
  65.         return $this;
  66.     }
  67.     /**
  68.      * Get locale
  69.      *
  70.      * @return string
  71.      */
  72.     public function getLocale()
  73.     {
  74.         return $this->locale;
  75.     }
  76.     /**
  77.      * Get productParameterGroupId
  78.      *
  79.      * @return integer
  80.      */
  81.     public function getProductParameterGroupId()
  82.     {
  83.         return $this->productParameterGroupId;
  84.     }
  85.     /**
  86.      * Set productParameterGroupName
  87.      *
  88.      * @param string $productParameterGroupName
  89.      *
  90.      * @return ProductParameterGroup
  91.      */
  92.     public function setProductParameterGroupName($productParameterGroupName)
  93.     {
  94.         $this->productParameterGroupName $productParameterGroupName;
  95.         return $this;
  96.     }
  97.     /**
  98.      * Get productParameterGroupName
  99.      *
  100.      * @return string
  101.      */
  102.     public function getProductParameterGroupName()
  103.     {
  104.         return $this->productParameterGroupName;
  105.     }
  106.     /**
  107.      * Set productParameterGroupDescription
  108.      *
  109.      * @param string $productParameterGroupDescription
  110.      *
  111.      * @return ProductParameterGroup
  112.      */
  113.     public function setProductParameterGroupDescription($productParameterGroupDescription)
  114.     {
  115.         $this->productParameterGroupDescription $productParameterGroupDescription;
  116.         return $this;
  117.     }
  118.     /**
  119.      * Get productParameterGroupDescription
  120.      *
  121.      * @return string
  122.      */
  123.     public function getProductParameterGroupDescription()
  124.     {
  125.         return $this->productParameterGroupDescription;
  126.     }
  127.     /**
  128.      * Set productParameterKey
  129.      *
  130.      * @param string $productParameterKey
  131.      *
  132.      * @return ProductParameterGroup
  133.      */
  134.     public function setProductParameterKey($productParameterKey)
  135.     {
  136.         $this->productParameterKey $productParameterKey;
  137.         return $this;
  138.     }
  139.     /**
  140.      * Get productParameterKey
  141.      *
  142.      * @return string
  143.      */
  144.     public function getProductParameterKey()
  145.     {
  146.         return $this->productParameterKey;
  147.     }
  148.     /**
  149.      * Set priority
  150.      *
  151.      * @param integer $priority
  152.      *
  153.      * @return ProductParameterGroup
  154.      */
  155.     public function setPriority($priority)
  156.     {
  157.         $this->priority $priority;
  158.         return $this;
  159.     }
  160.     /**
  161.      * Get priority
  162.      *
  163.      * @return integer
  164.      */
  165.     public function getPriority()
  166.     {
  167.         return $this->priority;
  168.     }
  169.     /**
  170.      * Set isVisible
  171.      *
  172.      * @param boolean $isVisible
  173.      *
  174.      * @return ProductParameterGroup
  175.      */
  176.     public function setIsVisible($isVisible)
  177.     {
  178.         $this->isVisible $isVisible;
  179.         return $this;
  180.     }
  181.     /**
  182.      * Get isVisible
  183.      *
  184.      * @return boolean
  185.      */
  186.     public function getIsVisible()
  187.     {
  188.         return $this->isVisible;
  189.     }
  190.     public function isIsVisible(): ?bool
  191.     {
  192.         return $this->isVisible;
  193.     }
  194. }