Beta version

class Group extends AbstractEntity

A group gather User and Roles.

Methods

int
getId()

Get entity unique identifier.

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

in AbstractEntity at line 51
int getId()

Get entity unique identifier.

Return Value

int

in AbstractEntity at line 60
AbstractEntity setId(int $id)

Parameters

int $id

Return Value

AbstractEntity

at line 53
string getName()

Return Value

string

at line 62
$this setName(string $name)

Parameters

string $name

Return Value

$this

at line 78
ArrayCollection getUsers()

Return Value

ArrayCollection

at line 99
ArrayCollection getRolesEntities()

Get roles entities.

Return Value

ArrayCollection

at line 108
array getRoles()

Get roles names as a simple array.

Return Value

array

at line 124
$this addRole(Role $role)

Parameters

Role $role

Return Value

$this

at line 137
$this removeRole(Role $role)

Parameters

Role $role

Return Value

$this

at line 149
GroupHandler getHandler()

Return Value

GroupHandler

at line 157
__construct()

Create a new Group.