MaskBuilderInterface
interface MaskBuilderInterface
This is the interface that must be implemented by mask builders.
Methods
$this | set(int $mask) Set the mask of this permission. | |
int | get() Returns the mask of this permission. | |
$this | add(mixed $mask) Adds a mask to the permission. | |
$this | remove(mixed $mask) Removes a mask from the permission. | |
$this | reset() Resets the PermissionBuilder. | |
int | resolveMask(mixed $code) Returns the mask for the passed code. |
Details
$this set(int $mask)
Set the mask of this permission.
Parameters
int | $mask |
Return Value
$this |
Exceptions
InvalidArgumentException | if $mask is not an integer |
int get()
Returns the mask of this permission.
Return Value
int |
$this add(mixed $mask)
Adds a mask to the permission.
Parameters
mixed | $mask |
Return Value
$this |
Exceptions
InvalidArgumentException |
$this remove(mixed $mask)
Removes a mask from the permission.
Parameters
mixed | $mask |
Return Value
$this |
Exceptions
InvalidArgumentException |
$this reset()
Resets the PermissionBuilder.
Return Value
$this |
int resolveMask(mixed $code)
Returns the mask for the passed code.
Parameters
mixed | $code |
Return Value
int |
Exceptions
InvalidArgumentException |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.7/Symfony/Component/Security/Acl/Permission/MaskBuilderInterface.html