3 // src/Rapsys/UserBundle/Entity/Group.php
4 namespace Rapsys\UserBundle\Entity
;
6 class Group
extends \Symfony\Component\Security\Core\Role\Role
{
28 * @var \Doctrine\Common\Collections\Collection
34 * @param string $role The role name
36 public function __construct($role) {
37 $this->role
= (string) $role;
38 $this->users
= new \Doctrine\Common\Collections\
ArrayCollection();
48 public function setRole($role) {
59 public function getRole() {
66 * @param \DateTime $created
70 public function setCreated($created) {
71 $this->created
= $created;
81 public function getCreated() {
82 return $this->created
;
88 * @param \DateTime $updated
92 public function setUpdated($updated) {
93 $this->updated
= $updated;
103 public function getUpdated() {
104 return $this->updated
;
110 * @param \Rapsys\UserBundle\Entity\User $user
114 public function addUser(\Rapsys\UserBundle\Entity\User
$user) {
115 $this->users
[] = $user;
123 * @param \Rapsys\UserBundle\Entity\User $user
125 public function removeUser(\Rapsys\UserBundle\Entity\User
$user) {
126 $this->users
->removeElement($user);
132 * @return \Doctrine\Common\Collections\Collection
134 public function getUsers() {