| Total Complexity | 5 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 8 | final class SpellVanishedToTheVoid 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( |
||
| 18 | MatchId $match, |
||
| 19 | int $player, |
||
| 20 | int $offset |
||
| 21 | ) { |
||
| 22 | $this->match = $match; |
||
| 23 | $this->player = $player; |
||
| 24 | $this->offset = $offset; |
||
| 25 | } |
||
| 26 | |||
| 27 | public function aggregateId(): MatchId |
||
| 28 | { |
||
| 29 | return $this->match; |
||
| 30 | } |
||
| 31 | |||
| 32 | public function match(): MatchId |
||
| 33 | { |
||
| 34 | return $this->aggregateId(); |
||
| 35 | } |
||
| 36 | |||
| 37 | public function player(): int |
||
| 38 | { |
||
| 39 | return $this->player; |
||
| 40 | } |
||
| 41 | |||
| 42 | public function offset(): int |
||
| 45 | } |
||
| 46 | } |
||
| 47 |