| Total Complexity | 6 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 9 | final class UnitMovedIntoPlay implements MatchEvent |
||
| 10 | { |
||
| 11 | /** @var MatchId */ |
||
| 12 | private $match; |
||
| 13 | /** @var CardId */ |
||
| 14 | private $card; |
||
| 15 | /** @var int */ |
||
| 16 | private $player; |
||
| 17 | /** @var int */ |
||
| 18 | private $offset; |
||
| 19 | |||
| 20 | public function __construct( |
||
| 21 | MatchId $match, |
||
| 22 | CardId $card, |
||
| 23 | int $player, |
||
| 24 | int $offset |
||
| 25 | ) { |
||
| 26 | $this->match = $match; |
||
| 27 | $this->card = $card; |
||
| 28 | $this->player = $player; |
||
| 29 | $this->offset = $offset; |
||
| 30 | } |
||
| 31 | |||
| 32 | public function aggregateId(): MatchId |
||
| 33 | { |
||
| 34 | return $this->match; |
||
| 35 | } |
||
| 36 | |||
| 37 | public function match(): MatchId |
||
| 38 | { |
||
| 39 | return $this->aggregateId(); |
||
| 40 | } |
||
| 41 | |||
| 42 | public function card(): CardId |
||
| 43 | { |
||
| 44 | return $this->card; |
||
| 45 | } |
||
| 46 | |||
| 47 | public function player(): int |
||
| 50 | } |
||
| 51 | |||
| 52 | public function offset(): int |
||
| 53 | { |
||
| 55 | } |
||
| 56 | } |
||
| 57 |