| Current Path : /var/www/v3.cesa.co.za/src/CoreBundle/Entity/ |
| Current File : /var/www/v3.cesa.co.za/src/CoreBundle/Entity/SystemSettingGroup.php |
<?php
namespace App\CoreBundle\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* SystemSettingGroup
*
* @ORM\Table(name="system_setting_group")
* @ORM\Entity(repositoryClass="App\CoreBundle\Repository\SystemSettingGroupRepository")
*/
class SystemSettingGroup
{
/**
* @ORM\Id
* @ORM\Column(type="string", unique=true)
* @ORM\GeneratedValue(strategy="CUSTOM")
* @ORM\CustomIdGenerator(class="Ramsey\Uuid\Doctrine\UuidGenerator")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $group_name;
/**
* @ORM\Column(type="boolean", options={"default": false})
*/
private $is_visible;
/**
* @ORM\OneToMany(targetEntity="SystemSetting", mappedBy="system_setting_group")
*/
private $system_setting;
/**
* Constructor
*/
public function __construct()
{
$this->system_setting = new \Doctrine\Common\Collections\ArrayCollection();
}
/**
* Get id
*
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Set group_name
*
* @param string $groupName
* @return SystemSettingGroup
*/
public function setGroupName($groupName)
{
$this->group_name = $groupName;
return $this;
}
/**
* Get group_name
*
* @return string
*/
public function getGroupName()
{
return $this->group_name;
}
/**
* Set is_visible
*
* @param boolean $isVisible
* @return SystemSettingGroup
*/
public function setIsVisible($isVisible)
{
$this->is_visible = $isVisible;
return $this;
}
/**
* Get is_visible
*
* @return boolean
*/
public function getIsVisible()
{
return $this->is_visible;
}
/**
* Add system_setting
*
* @param \CoreBundle\Entity\SystemSetting $systemSetting
* @return SystemSettingGroup
*/
public function addSystemSetting(\App\CoreBundle\Entity\SystemSetting $systemSetting)
{
$this->system_setting[] = $systemSetting;
return $this;
}
/**
* Remove system_setting
*
* @param \CoreBundle\Entity\SystemSetting $systemSetting
*/
public function removeSystemSetting(\App\CoreBundle\Entity\SystemSetting $systemSetting)
{
$this->system_setting->removeElement($systemSetting);
}
/**
* Get system_setting
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getSystemSetting()
{
return $this->system_setting;
}
/**
* Get object as string
*
* @return string
*/
public function __toString()
{
return (string) $this->getGroupName();
}
public function isIsVisible(): ?bool
{
return $this->is_visible;
}
public function isVisible(): ?bool
{
return $this->is_visible;
}
}