AgendaWasAdded::name()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
declare(strict_types = 1);
3
4
namespace PersonalGalaxy\Calendar\Event;
5
6
use PersonalGalaxy\Calendar\Entity\Agenda\{
7
    Identity,
8
    User,
9
    Name,
10
};
11
12
final class AgendaWasAdded
13
{
14
    private $identity;
15
    private $user;
16
    private $name;
17
18 8
    public function __construct(Identity $identity, User $user, Name $name)
19
    {
20 8
        $this->identity = $identity;
21 8
        $this->user = $user;
22 8
        $this->name = $name;
23 8
    }
24
25 2
    public function identity(): Identity
26
    {
27 2
        return $this->identity;
28
    }
29
30 2
    public function user(): User
31
    {
32 2
        return $this->user;
33
    }
34
35 2
    public function name(): Name
36
    {
37 2
        return $this->name;
38
    }
39
}
40