<?phpnamespace 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\ProductParameterGroupRepo") * @ORM\Table(name="product_parameter_group") * @Gedmo\TranslationEntity(class="App\Entity\ProductParameterGroupTranslation") */class ProductParameterGroup implements Translatable{ const PARAMTYPE = array('PARAMTYPE_TEXT' => 0, 'PARAMTYPE_CHOICES' => 1, 'PARAMTYPE_TRUEFALSE' => 2); /** * @ORM\Column(type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ protected $productParameterGroupId=0; /** * @Gedmo\Translatable * @ORM\Column(type="string", length=255, nullable=true) */ protected $productParameterGroupName; /** * @Gedmo\Translatable * @ORM\Column(type="text", nullable=true) */ protected $productParameterGroupDescription; /** * @ORM\Column(type="string", length=100, nullable=true) */ protected $productParameterKey; /** * @ORM\Column(type="integer", nullable=true) */ protected $priority; /** * 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 productParameterGroupId * * @return integer */ public function getProductParameterGroupId() { return $this->productParameterGroupId; } /** * Set productParameterGroupName * * @param string $productParameterGroupName * * @return ProductParameterGroup */ public function setProductParameterGroupName($productParameterGroupName) { $this->productParameterGroupName = $productParameterGroupName; return $this; } /** * Get productParameterGroupName * * @return string */ public function getProductParameterGroupName() { return $this->productParameterGroupName; } /** * Set productParameterGroupDescription * * @param string $productParameterGroupDescription * * @return ProductParameterGroup */ public function setProductParameterGroupDescription($productParameterGroupDescription) { $this->productParameterGroupDescription = $productParameterGroupDescription; return $this; } /** * Get productParameterGroupDescription * * @return string */ public function getProductParameterGroupDescription() { return $this->productParameterGroupDescription; } /** * Set productParameterKey * * @param string $productParameterKey * * @return ProductParameterGroup */ public function setProductParameterKey($productParameterKey) { $this->productParameterKey = $productParameterKey; return $this; } /** * Get productParameterKey * * @return string */ public function getProductParameterKey() { return $this->productParameterKey; } /** * Set priority * * @param integer $priority * * @return ProductParameterGroup */ public function setPriority($priority) { $this->priority = $priority; return $this; } /** * Get priority * * @return integer */ public function getPriority() { return $this->priority; } /** * Set isVisible * * @param boolean $isVisible * * @return ProductParameterGroup */ 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; }}