AccountOverview   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 8
c 1
b 0
f 0
dl 0
loc 24
rs 10
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A id() 0 3 1
A isGuestAccount() 0 3 1
A visitor() 0 3 1
A __construct() 0 4 1
1
<?php declare(strict_types=1);
2
3
namespace Stratadox\CardGame\ReadModel\Account;
4
5
use Stratadox\CardGame\Account\AccountId;
6
use Stratadox\CardGame\Visiting\VisitorId;
7
8
final class AccountOverview
9
{
10
    private $id;
11
    private $visitorId;
12
13
    public function __construct(AccountId $id, VisitorId $visitorId)
14
    {
15
        $this->id = $id;
16
        $this->visitorId = $visitorId;
17
    }
18
19
    public function id(): AccountId
20
    {
21
        return $this->id;
22
    }
23
24
    public function visitor(): VisitorId
25
    {
26
        return $this->visitorId;
27
    }
28
29
    public function isGuestAccount(): bool
30
    {
31
        return true;
32
    }
33
}
34