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