PHP Class Sulu\Bundle\SecurityBundle\Entity\SecurityType

ファイルを表示 Open project: sulu/sulu Class Usage Examples

Public Methods

Method Description
__construct ( ) Constructor.
addRole ( Sulu\Component\Security\Authentication\RoleInterface $roles ) : SecurityType Add roles.
getId ( ) : integer Get id.
getName ( ) : string Get name.
getRoles ( ) : Doctrine\Common\Collections\Collection Get roles.
removeRole ( Sulu\Component\Security\Authentication\RoleInterface $roles ) Remove roles.
setId ( integer $id ) Set id.
setName ( string $name ) : SecurityType Set name.

Method Details

__construct() public method

Constructor.
public __construct ( )

addRole() public method

Add roles.
public addRole ( Sulu\Component\Security\Authentication\RoleInterface $roles ) : SecurityType
$roles Sulu\Component\Security\Authentication\RoleInterface
return SecurityType

getId() public method

Get id.
public getId ( ) : integer
return integer

getName() public method

Get name.
public getName ( ) : string
return string

getRoles() public method

Get roles.
public getRoles ( ) : Doctrine\Common\Collections\Collection
return Doctrine\Common\Collections\Collection

removeRole() public method

Remove roles.
public removeRole ( Sulu\Component\Security\Authentication\RoleInterface $roles )
$roles Sulu\Component\Security\Authentication\RoleInterface

setId() public method

Set id.
public setId ( integer $id )
$id integer

setName() public method

Set name.
public setName ( string $name ) : SecurityType
$name string
return SecurityType