UnanimousStrategy
in package
implements
AccessDecisionStrategyInterface, Stringable
FinalYes
Grants access if only grant (or abstain) votes were received.
If all voters abstained from voting, the decision will be based on the allowIfAllAbstainDecisions property value (defaults to false).
Tags
Table of Contents
Interfaces
- AccessDecisionStrategyInterface
- A strategy for turning a stream of votes into a final decision.
- Stringable
Properties
- $allowIfAllAbstainDecisions : bool
Methods
- __construct() : mixed
- __toString() : string
- decide() : bool
Properties
$allowIfAllAbstainDecisions
private
bool
$allowIfAllAbstainDecisions
Methods
__construct()
public
__construct([bool $allowIfAllAbstainDecisions = false ]) : mixed
Parameters
- $allowIfAllAbstainDecisions : bool = false
__toString()
public
__toString() : string
Return values
stringdecide()
public
decide(Traversable $results) : bool
Parameters
- $results : Traversable