| Total Complexity | 4 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class CmsGroup |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @Id |
||
| 16 | * @Column(type="CustomIdObject") |
||
| 17 | * @GeneratedValue(strategy="NONE") |
||
| 18 | */ |
||
| 19 | public $id; |
||
| 20 | /** |
||
| 21 | * @Column(length=50) |
||
| 22 | */ |
||
| 23 | public $name; |
||
| 24 | /** |
||
| 25 | * @ManyToMany(targetEntity="CmsUser", mappedBy="groups") |
||
| 26 | */ |
||
| 27 | public $users; |
||
| 28 | |||
| 29 | public function setName($name) { |
||
| 30 | $this->name = $name; |
||
| 31 | } |
||
| 32 | |||
| 33 | public function getName() { |
||
| 34 | return $this->name; |
||
| 35 | } |
||
| 36 | |||
| 37 | public function addUser(CmsUser $user) { |
||
| 38 | $this->users[] = $user; |
||
| 39 | } |
||
| 40 | |||
| 41 | public function getUsers() { |
||
| 43 | } |
||
| 44 | } |
||
| 45 | |||
| 46 |