Total Complexity | 6 |
Total Lines | 53 |
Duplicated Lines | 0 % |
Changes | 6 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | final class NullObjectDependency implements DependencyInterface |
||
17 | { |
||
18 | /** @var class-string */ |
||
|
|||
19 | private $interface; |
||
20 | |||
21 | /** |
||
22 | * @param class-string $interface |
||
23 | */ |
||
24 | public function __construct(string $interface) |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * {@inheritdoc} |
||
31 | */ |
||
32 | public function __toString(): string |
||
33 | { |
||
34 | return ''; |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * {@inheritdoc} |
||
39 | */ |
||
40 | public function inject(Container $container) |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | * |
||
48 | * @return void |
||
49 | */ |
||
50 | public function register(array &$container, Bind $bind) |
||
51 | { |
||
52 | $container[(string) $bind] = $bind->getBound(); |
||
53 | } |
||
54 | |||
55 | /** |
||
56 | * {@inheritdoc} |
||
57 | */ |
||
58 | public function setScope($scope) |
||
59 | { |
||
60 | } |
||
61 | |||
62 | public function toNull(string $scriptDir): Dependency |
||
69 | } |
||
70 | } |
||
71 |