Total Complexity | 3 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
8 | final class MatchHasBegun 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 |