AddAgenda   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 26
ccs 11
cts 11
cp 1
rs 10
c 0
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A identity() 0 3 1
A name() 0 3 1
A user() 0 3 1
1
<?php
2
declare(strict_types = 1);
3
4
namespace PersonalGalaxy\Calendar\Command;
5
6
use PersonalGalaxy\Calendar\Entity\Agenda\{
7
    Identity,
8
    User,
9
    Name,
10
};
11
12
final class AddAgenda
13
{
14
    private $identity;
15
    private $user;
16
    private $name;
17
18 2
    public function __construct(Identity $identity, User $user, Name $name)
19
    {
20 2
        $this->identity = $identity;
21 2
        $this->user = $user;
22 2
        $this->name = $name;
23 2
    }
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