Total Complexity | 5 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
9 | final class CardWasDrawn implements MatchEvent |
||
10 | { |
||
11 | private $match; |
||
12 | private $player; |
||
13 | private $card; |
||
14 | |||
15 | public function __construct(MatchId $match, CardId $card, int $player) |
||
16 | { |
||
17 | $this->match = $match; |
||
18 | $this->card = $card; |
||
19 | $this->player = $player; |
||
20 | } |
||
21 | |||
22 | public function aggregateId(): MatchId |
||
23 | { |
||
24 | return $this->match; |
||
25 | } |
||
26 | |||
27 | public function match(): MatchId |
||
30 | } |
||
31 | |||
32 | public function player(): int |
||
33 | { |
||
34 | return $this->player; |
||
35 | } |
||
36 | |||
37 | public function card(): CardId |
||
40 | } |
||
41 | } |
||
42 |