AbstractMaskBuilder

class AbstractMaskBuilder implements MaskBuilderInterface

This abstract class implements nearly all the MaskBuilderInterface methods.

Methods

__construct(int $mask)
$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.

Details

__construct(int $mask)

Parameters

int $mask optional; defaults to 0

$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

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.7/Symfony/Component/Security/Acl/Permission/AbstractMaskBuilder.html