Total Complexity | 4 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
9 | final class StartedMatchForProposal implements MatchEvent |
||
10 | { |
||
11 | private $matchId; |
||
12 | private $proposalId; |
||
13 | private $players; |
||
14 | |||
15 | public function __construct( |
||
16 | MatchId $matchId, |
||
17 | ProposalId $proposalId, |
||
18 | int ...$players |
||
19 | ) { |
||
20 | $this->matchId = $matchId; |
||
21 | $this->proposalId = $proposalId; |
||
22 | $this->players = $players; |
||
23 | } |
||
24 | |||
25 | public function aggregateId(): MatchId |
||
26 | { |
||
27 | return $this->matchId; |
||
28 | } |
||
29 | |||
30 | public function proposal(): ProposalId |
||
33 | } |
||
34 | |||
35 | /** @return int[] */ |
||
36 | public function players(): array |
||
39 | } |
||
40 | } |
||
41 |