Total Complexity | 5 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
13 | final class SubscriptionWasAdded |
||
14 | { |
||
15 | private $identity; |
||
16 | private $user; |
||
17 | private $name; |
||
18 | private $location; |
||
19 | |||
20 | 6 | public function __construct( |
|
21 | Identity $identity, |
||
22 | User $user, |
||
23 | Name $name, |
||
24 | UrlInterface $location |
||
25 | ) { |
||
26 | 6 | $this->identity = $identity; |
|
27 | 6 | $this->user = $user; |
|
28 | 6 | $this->name = $name; |
|
29 | 6 | $this->location = $location; |
|
30 | 6 | } |
|
31 | |||
32 | 2 | public function identity(): Identity |
|
35 | } |
||
36 | |||
37 | 2 | public function user(): User |
|
38 | { |
||
39 | 2 | return $this->user; |
|
40 | } |
||
41 | |||
42 | 2 | public function name(): Name |
|
45 | } |
||
46 | |||
47 | 2 | public function location(): UrlInterface |
|
50 | } |
||
51 | } |
||
52 |