AccountOverview::visitor()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
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