| Total Complexity | 4 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 7 | final class VisitorOpenedAnAccount implements AccountEvent |
||
| 8 | { |
||
| 9 | private $playerId; |
||
| 10 | private $visitorId; |
||
| 11 | |||
| 12 | private function __construct(AccountId $forPlayer, VisitorId $fromVisitor) |
||
| 13 | { |
||
| 14 | $this->playerId = $forPlayer; |
||
| 15 | $this->visitorId = $fromVisitor; |
||
| 16 | } |
||
| 17 | |||
| 18 | public static function with( |
||
| 23 | } |
||
| 24 | |||
| 25 | public function aggregateId(): AccountId |
||
| 28 | } |
||
| 29 | |||
| 30 | public function forVisitor(): VisitorId |
||
| 35 |