Total Complexity | 5 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
11 | final class Visitor implements DomainEventRecorder |
||
12 | { |
||
13 | use DomainEventRecording; |
||
14 | |||
15 | private $id; |
||
16 | private $visitedPages = []; |
||
17 | |||
18 | public function __construct(VisitorId $id) |
||
21 | } |
||
22 | |||
23 | public function id(): VisitorId |
||
26 | } |
||
27 | |||
28 | public function openAccount(AccountId $playerId): PlayerAccount |
||
29 | { |
||
30 | return PlayerAccount::fromVisitor($this->id, $playerId); |
||
31 | } |
||
32 | |||
33 | public function visit( |
||
47 | ); |
||
48 | } |
||
50 |