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