AbstractMaskBuilder

AbstractMaskBuilder

class AbstractMaskBuilder implements MaskBuilderInterface

This abstract class implements nearly all the MaskBuilderInterface methods.

Methods

__construct(int $mask)

Constructor.

MaskBuilderInterface set(int $mask)

Set the mask of this permission.

int get()

Returns the mask of this permission.

MaskBuilderInterface add(mixed $mask)

Adds a mask to the permission.

MaskBuilderInterface remove(mixed $mask)

Removes a mask from the permission.

MaskBuilderInterface reset()

Resets the PermissionBuilder.

Details

__construct(int $mask)

Constructor.

Parameters

int $mask optional; defaults to 0

MaskBuilderInterface set(int $mask)

Set the mask of this permission.

Parameters

int $mask

Return Value

MaskBuilderInterface

Exceptions

InvalidArgumentException if $mask is not an integer

int get()

Returns the mask of this permission.

Return Value

int

MaskBuilderInterface add(mixed $mask)

Adds a mask to the permission.

Parameters

mixed $mask

Return Value

MaskBuilderInterface

Exceptions

InvalidArgumentException

MaskBuilderInterface remove(mixed $mask)

Removes a mask from the permission.

Parameters

mixed $mask

Return Value

MaskBuilderInterface

Exceptions

InvalidArgumentException

MaskBuilderInterface reset()

Resets the PermissionBuilder.

Return Value

MaskBuilderInterface

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

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部