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