src/Entity/ProductGroup.php line 26

Open in your IDE?
  1. <?php
  2. /**
  3.  * Product class represents model of ProductGroup entity (offers, actions, etc.)
  4.  *
  5.  * $Project: Alliancemarkets2 $
  6.  * $Id$
  7.  *
  8.  * @package alliancemarkets2
  9.  * @author George Matyas <webexciter@yahoo.com>
  10.  * @version $Revision$
  11.  */
  12. // src/AppBundle/Entity/ProductGroup.php
  13. namespace App\Entity;
  14. use Doctrine\DBAL\Types\Types;
  15. use Doctrine\ORM\Mapping as ORM;
  16. use Gedmo\Mapping\Annotation as Gedmo;
  17. use Gedmo\Translatable\Translatable;
  18. /**
  19.  * @ORM\Entity(repositoryClass="App\EntityRepo\ProductGroupRepo")
  20.  * @ORM\Table(name="product_group")
  21.  * @Gedmo\TranslationEntity(class="App\Entity\ProductGroupTranslation")
  22.  */
  23. class ProductGroup implements Translatable
  24. {
  25.     /**
  26.      * @ORM\Column(type="integer")
  27.      * @ORM\Id
  28.      * @ORM\GeneratedValue(strategy="AUTO")
  29.      */ 
  30.     protected $productGroupId=0;
  31.     
  32.     /**
  33.      * @Gedmo\Translatable
  34.      * @ORM\Column(type="string", length=100, nullable=true)
  35.      */
  36.     protected $productGroupName;
  37.     
  38.     /**
  39.      * @Gedmo\Translatable
  40.      * @ORM\Column(type="text", nullable=true)
  41.      */
  42.     protected $productGroupDescription;
  43.     /**
  44.      * @ORM\Column(type="string", length=100, nullable=true)
  45.      */
  46.     protected $productGroupCss1;        
  47.     
  48.     /**
  49.      * @ORM\Column(type="string", length=100, nullable=true)
  50.      */
  51.     protected $productGroupCss2;   
  52.     /**
  53.      * Post locale
  54.      * Used locale to override Translation listener's locale
  55.      *
  56.      * @Gedmo\Locale
  57.      * 
  58.      */
  59.     protected $locale;  
  60.     
  61.     /**
  62.      * @ORM\Column(type="boolean", nullable=true)
  63.      */
  64.     protected $isVisible=true;        
  65.     /**
  66.      * Set locale
  67.      *
  68.      * @param string $locale
  69.      *
  70.      * @return Product
  71.      */
  72.     public function setLocale($locale)
  73.     {
  74.         $this->locale $locale;
  75.         return $this;
  76.     }
  77.     /**
  78.      * Get locale
  79.      *
  80.      * @return string
  81.      */
  82.     public function getLocale()
  83.     {
  84.         return $this->locale;
  85.     }
  86.     /**
  87.      * Get productGroupId
  88.      *
  89.      * @return integer
  90.      */
  91.     public function getProductGroupId()
  92.     {
  93.         return $this->productGroupId;
  94.     }
  95.     /**
  96.      * Set productGroupName
  97.      *
  98.      * @param string $productGroupName
  99.      *
  100.      * @return ProductGroup
  101.      */
  102.     public function setProductGroupName($productGroupName)
  103.     {
  104.         $this->productGroupName $productGroupName;
  105.         return $this;
  106.     }
  107.     /**
  108.      * Get productGroupName
  109.      *
  110.      * @return string
  111.      */
  112.     public function getProductGroupName()
  113.     {
  114.         return $this->productGroupName;
  115.     }
  116.     /**
  117.      * Set productGroupDescription
  118.      *
  119.      * @param string $productGroupDescription
  120.      *
  121.      * @return ProductGroup
  122.      */
  123.     public function setProductGroupDescription($productGroupDescription)
  124.     {
  125.         $this->productGroupDescription $productGroupDescription;
  126.         return $this;
  127.     }
  128.     /**
  129.      * Get productGroupDescription
  130.      *
  131.      * @return string
  132.      */
  133.     public function getProductGroupDescription()
  134.     {
  135.         return $this->productGroupDescription;
  136.     }
  137.     /**
  138.      * Set productGroupCss1
  139.      *
  140.      * @param string $productGroupCss1
  141.      *
  142.      * @return ProductGroup
  143.      */
  144.     public function setProductGroupCss1($productGroupCss1)
  145.     {
  146.         $this->productGroupCss1 $productGroupCss1;
  147.         return $this;
  148.     }
  149.     /**
  150.      * Get productGroupCss1
  151.      *
  152.      * @return string
  153.      */
  154.     public function getProductGroupCss1()
  155.     {
  156.         return $this->productGroupCss1;
  157.     }
  158.     /**
  159.      * Set productGroupCss2
  160.      *
  161.      * @param string $productGroupCss2
  162.      *
  163.      * @return ProductGroup
  164.      */
  165.     public function setProductGroupCss2($productGroupCss2)
  166.     {
  167.         $this->productGroupCss2 $productGroupCss2;
  168.         return $this;
  169.     }
  170.     /**
  171.      * Get productGroupCss2
  172.      *
  173.      * @return string
  174.      */
  175.     public function getProductGroupCss2()
  176.     {
  177.         return $this->productGroupCss2;
  178.     }
  179.     /**
  180.      * Set isVisible
  181.      *
  182.      * @param boolean $isVisible
  183.      *
  184.      * @return ProductGroup
  185.      */
  186.     public function setIsVisible($isVisible)
  187.     {
  188.         $this->isVisible $isVisible;
  189.         return $this;
  190.     }
  191.     /**
  192.      * Get isVisible
  193.      *
  194.      * @return boolean
  195.      */
  196.     public function getIsVisible()
  197.     {
  198.         return $this->isVisible;
  199.     }
  200.     public function isIsVisible(): ?bool
  201.     {
  202.         return $this->isVisible;
  203.     }
  204. }