| 1 | <?php |
||
| 9 | class ConstVoter implements IVoter |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var VotingDecisionEnum |
||
| 13 | */ |
||
| 14 | private $constDecision; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var mixed |
||
| 18 | */ |
||
| 19 | private $constReason; |
||
| 20 | |||
| 21 | |||
| 22 | /** |
||
| 23 | * ConstVoter constructor. |
||
| 24 | * @param VotingDecisionEnum $constDecision |
||
| 25 | * @param mixed $constReason |
||
| 26 | */ |
||
| 27 | public function __construct(VotingDecisionEnum $constDecision, $constReason = null) |
||
| 32 | |||
| 33 | |||
| 34 | /** |
||
| 35 | * @param mixed $votingSubject |
||
| 36 | * @param \SpareParts\Overseer\Context\IVotingContext $votingContext |
||
| 37 | * @return ISingleVoterResult |
||
| 38 | */ |
||
| 39 | public function vote($votingSubject, IVotingContext $votingContext) |
||
| 43 | } |
||
| 44 |