| Total Complexity | 3 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 8 | final class MatchStarted implements MatchEvent |
||
| 9 | { |
||
| 10 | private $match; |
||
| 11 | private $whoBegins; |
||
| 12 | |||
| 13 | public function __construct(MatchId $match, int $whoBegins) |
||
| 17 | } |
||
| 18 | |||
| 19 | public function aggregateId(): MatchId |
||
| 20 | { |
||
| 21 | return $this->match; |
||
| 22 | } |
||
| 23 | |||
| 24 | public function whoBegins(): int |
||
| 27 | } |
||
| 28 | } |
||
| 29 |