Policy
class Policy implements JsonSerializable
Policy class.
Constants
EFFECTS |
|
ACTIONS |
|
Methods
__construct(string $effect, string|array $actions = [], ConstraintInterface $constraint = null)
Policy constructor.
string
getEffect()
No description
string|string[]
getActions()
No description
setActions(string|string[] $actions)
No description
ConstraintInterface|null
getConstraint()
No description
array
jsonSerialize()
Returns an array to be used by "json_encode" to serialize objects of this class.
Details
at line 64
__construct(string $effect, string|array $actions = [], ConstraintInterface $constraint = null)
Policy constructor.
at line 74
string
getEffect()
at line 84
Policy
setEffect(string $effect)
at line 101
string|string[]
getActions()
at line 111
Policy
setActions(string|string[] $actions)
at line 134
Policy
addAction(string $action)
at line 158
ConstraintInterface|null
getConstraint()
at line 168
Policy
setConstraint(ConstraintInterface $constraint = null)
at line 180
array
jsonSerialize()
Returns an array to be used by "json_encode" to serialize objects of this class.