Total Complexity | 6 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
12 | final class Service |
||
13 | { |
||
14 | private $definition; |
||
15 | private $constructor; |
||
16 | private $property; |
||
17 | private $method; |
||
18 | |||
19 | 10 | public function __construct(Definition $service, Constructor $constructor) |
|
25 | 10 | } |
|
26 | |||
27 | 5 | public function accessible(): bool |
|
28 | { |
||
29 | 5 | return $this->definition->exposed(); |
|
30 | } |
||
31 | |||
32 | 5 | public function name(): Name |
|
33 | { |
||
34 | 5 | return $this->definition->exposedAs(); |
|
35 | } |
||
36 | |||
37 | 5 | public function property(): PropertyName |
|
40 | } |
||
41 | |||
42 | 5 | public function method(): MethodName |
|
45 | } |
||
46 | |||
47 | 5 | public function __toString(): string |
|
59 |