<?php
/**
* Product class represents model of ProductGroup entity (offers, actions, etc.)
*
* $Project: Alliancemarkets2 $
* $Id$
*
* @package alliancemarkets2
* @author George Matyas <webexciter@yahoo.com>
* @version $Revision$
*/
// src/AppBundle/Entity/ProductGroup.php
namespace App\Entity;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
use Gedmo\Translatable\Translatable;
/**
* @ORM\Entity(repositoryClass="App\EntityRepo\ProductGroupRepo")
* @ORM\Table(name="product_group")
* @Gedmo\TranslationEntity(class="App\Entity\ProductGroupTranslation")
*/
class ProductGroup implements Translatable
{
/**
* @ORM\Column(type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $productGroupId=0;
/**
* @Gedmo\Translatable
* @ORM\Column(type="string", length=100, nullable=true)
*/
protected $productGroupName;
/**
* @Gedmo\Translatable
* @ORM\Column(type="text", nullable=true)
*/
protected $productGroupDescription;
/**
* @ORM\Column(type="string", length=100, nullable=true)
*/
protected $productGroupCss1;
/**
* @ORM\Column(type="string", length=100, nullable=true)
*/
protected $productGroupCss2;
/**
* Post locale
* Used locale to override Translation listener's locale
*
* @Gedmo\Locale
*
*/
protected $locale;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
protected $isVisible=true;
/**
* Set locale
*
* @param string $locale
*
* @return Product
*/
public function setLocale($locale)
{
$this->locale = $locale;
return $this;
}
/**
* Get locale
*
* @return string
*/
public function getLocale()
{
return $this->locale;
}
/**
* Get productGroupId
*
* @return integer
*/
public function getProductGroupId()
{
return $this->productGroupId;
}
/**
* Set productGroupName
*
* @param string $productGroupName
*
* @return ProductGroup
*/
public function setProductGroupName($productGroupName)
{
$this->productGroupName = $productGroupName;
return $this;
}
/**
* Get productGroupName
*
* @return string
*/
public function getProductGroupName()
{
return $this->productGroupName;
}
/**
* Set productGroupDescription
*
* @param string $productGroupDescription
*
* @return ProductGroup
*/
public function setProductGroupDescription($productGroupDescription)
{
$this->productGroupDescription = $productGroupDescription;
return $this;
}
/**
* Get productGroupDescription
*
* @return string
*/
public function getProductGroupDescription()
{
return $this->productGroupDescription;
}
/**
* Set productGroupCss1
*
* @param string $productGroupCss1
*
* @return ProductGroup
*/
public function setProductGroupCss1($productGroupCss1)
{
$this->productGroupCss1 = $productGroupCss1;
return $this;
}
/**
* Get productGroupCss1
*
* @return string
*/
public function getProductGroupCss1()
{
return $this->productGroupCss1;
}
/**
* Set productGroupCss2
*
* @param string $productGroupCss2
*
* @return ProductGroup
*/
public function setProductGroupCss2($productGroupCss2)
{
$this->productGroupCss2 = $productGroupCss2;
return $this;
}
/**
* Get productGroupCss2
*
* @return string
*/
public function getProductGroupCss2()
{
return $this->productGroupCss2;
}
/**
* Set isVisible
*
* @param boolean $isVisible
*
* @return ProductGroup
*/
public function setIsVisible($isVisible)
{
$this->isVisible = $isVisible;
return $this;
}
/**
* Get isVisible
*
* @return boolean
*/
public function getIsVisible()
{
return $this->isVisible;
}
public function isIsVisible(): ?bool
{
return $this->isVisible;
}
}