class Group extends AbstractEntity (View source)

A group gather User and Roles.

Methods

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

__construct()

Create a new Group.

Details

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

__construct()

Create a new Group.