Completed
Push — develop ( 8e6584...40375e )
by Baptiste
02:11
created

AddEvent::slot()   A

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\Command;
5
6
use PersonalGalaxy\Calendar\Entity\{
7
    Event\Identity,
8
    Event\Name,
9
    Event\Slot,
10
    Agenda\Identity as Agenda,
11
};
12
13
final class AddEvent
14
{
15
    private $identity;
16
    private $agenda;
17
    private $name;
18
    private $slot;
19
20 4
    public function __construct(
21
        Identity $identity,
22
        Agenda $agenda,
23
        Name $name,
24
        Slot $slot
25
    ) {
26 4
        $this->identity = $identity;
27 4
        $this->agenda = $agenda;
28 4
        $this->name = $name;
29 4
        $this->slot = $slot;
30 4
    }
31
32 2
    public function identity(): Identity
33
    {
34 2
        return $this->identity;
35
    }
36
37 3
    public function agenda(): Agenda
38
    {
39 3
        return $this->agenda;
40
    }
41
42 2
    public function name(): Name
43
    {
44 2
        return $this->name;
45
    }
46
47 4
    public function slot(): Slot
48
    {
49 4
        return $this->slot;
50
    }
51
}
52