| 1 | <?php |
||
| 9 | abstract class AbstractVotingManager |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var IVotingAssembly[] |
||
| 13 | */ |
||
| 14 | private $votingAssemblies; |
||
| 15 | |||
| 16 | |||
| 17 | /** |
||
| 18 | * VotingManager constructor. |
||
| 19 | * @param IVotingAssembly[] $votingAssemblies |
||
| 20 | */ |
||
| 21 | 4 | public function __construct(array $votingAssemblies) |
|
| 25 | |||
| 26 | |||
| 27 | /** |
||
| 28 | * @param string $action |
||
| 29 | * @param \SpareParts\Overseer\Voter\IVotingSubject|mixed $votingSubject |
||
| 30 | * @param \SpareParts\Overseer\Identity\IVotingContext $votingContext |
||
| 31 | * @return \SpareParts\Overseer\IVotingResult |
||
| 32 | * @throws \SpareParts\Overseer\InvalidVotingResultException |
||
| 33 | */ |
||
| 34 | 4 | protected function innerVote($action, $votingSubject, IVotingContext $votingContext) |
|
| 48 | } |
||
| 49 |