mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +00:00
114 lines
1.5 KiB
PHP
114 lines
1.5 KiB
PHP
<?php
|
|
|
|
namespace Chill\EventBundle\Entity;
|
|
|
|
/**
|
|
* Role
|
|
*/
|
|
class Role
|
|
{
|
|
/**
|
|
* @var integer
|
|
*/
|
|
private $id;
|
|
|
|
/**
|
|
* @var array
|
|
*/
|
|
private $name;
|
|
|
|
/**
|
|
* @var boolean
|
|
*/
|
|
private $active;
|
|
|
|
/**
|
|
* @var \Chill\EventBundle\Entity\EventType
|
|
*/
|
|
private $type;
|
|
|
|
|
|
/**
|
|
* Get id
|
|
*
|
|
* @return integer
|
|
*/
|
|
public function getId()
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
/**
|
|
* Set label
|
|
*
|
|
* @param array $label
|
|
*
|
|
* @return Role
|
|
*/
|
|
public function setName($label)
|
|
{
|
|
$this->name = $label;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get label
|
|
*
|
|
* @return array
|
|
*/
|
|
public function getName()
|
|
{
|
|
return $this->name;
|
|
}
|
|
|
|
/**
|
|
* Set active
|
|
*
|
|
* @param boolean $active
|
|
*
|
|
* @return Role
|
|
*/
|
|
public function setActive($active)
|
|
{
|
|
$this->active = $active;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get active
|
|
*
|
|
* @return boolean
|
|
*/
|
|
public function getActive()
|
|
{
|
|
return $this->active;
|
|
}
|
|
|
|
|
|
/**
|
|
* Set type
|
|
*
|
|
* @param \Chill\EventBundle\Entity\EventType $type
|
|
*
|
|
* @return Role
|
|
*/
|
|
public function setType(EventType $type = null)
|
|
{
|
|
$this->type = $type;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get type
|
|
*
|
|
* @return \Chill\EventBundle\Entity\EventType
|
|
*/
|
|
public function getType()
|
|
{
|
|
return $this->type;
|
|
}
|
|
}
|