| Total Complexity | 5 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 9 | final class UnitDied implements MatchEvent |
||
| 10 | { |
||
| 11 | /** @var MatchId */ |
||
| 12 | private $match; |
||
| 13 | /** @var CardId */ |
||
| 14 | private $card; |
||
| 15 | /** @var int */ |
||
| 16 | private $player; |
||
| 17 | |||
| 18 | public function __construct(MatchId $match, CardId $card, int $player) |
||
| 23 | } |
||
| 24 | |||
| 25 | public function aggregateId(): MatchId |
||
| 26 | { |
||
| 27 | return $this->match; |
||
| 28 | } |
||
| 29 | |||
| 30 | public function match(): MatchId |
||
| 33 | } |
||
| 34 | |||
| 35 | public function card(): CardId |
||
| 38 | } |
||
| 39 | |||
| 40 | public function player(): int |
||
| 45 |