Total Complexity | 5 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
7 | class AccountOverviews |
||
8 | { |
||
9 | /** @var AccountOverview[] */ |
||
10 | private $accounts = []; |
||
11 | |||
12 | public static function startEmpty(): self |
||
13 | { |
||
14 | return new self(); |
||
15 | } |
||
16 | |||
17 | public function add(AccountOverview $accountOverview): void |
||
18 | { |
||
19 | $this->accounts[] = $accountOverview; |
||
20 | } |
||
21 | |||
22 | /** @throws NoAccountForVisitor */ |
||
23 | public function forVisitor(VisitorId $visitor): AccountOverview |
||
31 | } |
||
32 | } |
||
33 |