Passed
Push — develop ( eaa894...ad515c )
by Baptiste
01:56
created

AddFolder::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

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