Total Complexity | 3 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
15 | final class ProviderSetProvider implements ProviderInterface |
||
16 | { |
||
17 | /** @var InjectionPointInterface */ |
||
18 | private $ip; |
||
19 | |||
20 | /** @var InjectorInterface */ |
||
21 | private $injector; |
||
22 | |||
23 | /** @var ParamReaderInterface<T> */ |
||
24 | private $reader; |
||
25 | |||
26 | /** |
||
27 | * @param ParamReaderInterface<T> $reader |
||
28 | */ |
||
29 | public function __construct( |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * @return mixed |
||
41 | */ |
||
42 | public function get() |
||
54 |
In the issue above, the returned value is violating the contract defined by the mentioned interface.
Let's take a look at an example: