class Group extends AbstractEntity (View source)

A group gather User and Roles.

Properties

protected $id from AbstractEntity

Methods

int
getId()

No description

setId(int $id)

No description

string
getName()

No description

$this
setName(string $name)

No description

ArrayCollection
getUsers()

No description

ArrayCollection
getRolesEntities()

Get roles entities.

array
getRoles()

Get roles names as a simple array.

$this
addRole(Role $role)

No description

$this
removeRole(Role $role)

No description

getHandler()

No description

__construct()

Create a new Group.

Details

int getId()

Return Value

int

AbstractEntity setId(int $id)

Parameters

int $id

Return Value

AbstractEntity

string getName()

Return Value

string

$this setName(string $name)

Parameters

string $name

Return Value

$this

ArrayCollection getUsers()

Return Value

ArrayCollection

ArrayCollection getRolesEntities()

Get roles entities.

Return Value

ArrayCollection

array getRoles()

Get roles names as a simple array.

Return Value

array

$this addRole(Role $role)

Parameters

Role $role

Return Value

$this

$this removeRole(Role $role)

Parameters

Role $role

Return Value

$this

GroupHandler getHandler()

Return Value

GroupHandler

__construct()

Create a new Group.