1 | <?php |
||
7 | abstract class AbstractVotingManager |
||
8 | { |
||
9 | /** |
||
10 | * @var IVotingAbilityAwareAssembly[] |
||
11 | */ |
||
12 | private $votingAssemblies; |
||
13 | |||
14 | |||
15 | /** |
||
16 | * VotingManager constructor. |
||
17 | * @param IVotingAbilityAwareAssembly[] $votingAssemblies |
||
18 | */ |
||
19 | 7 | public function __construct(array $votingAssemblies) |
|
23 | |||
24 | |||
25 | /** |
||
26 | * @param string $action |
||
27 | * @param mixed $votingSubject |
||
28 | * @param \SpareParts\Overseer\Context\IVotingContext $votingContext |
||
29 | * @return \SpareParts\Overseer\IVotingResult |
||
30 | * @throws \SpareParts\Overseer\InvalidVotingResultException |
||
31 | */ |
||
32 | 7 | protected function innerVote($action, $votingSubject, IVotingContext $votingContext) |
|
47 | } |
||
48 |