| Total Complexity | 5 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 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 |
|
| 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 |