NullDependency::__toString()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Ray\Di;
6
7
/**
8
 * @codeCoverageIgnore
9
 */
10
final class NullDependency implements DependencyInterface
11
{
12
    /**
13
     * {@inheritdoc}
14
     */
15
    public function __toString(): string
16
    {
17
        return '';
18
    }
19
20
    /**
21
     * {@inheritdoc}
22
     */
23
    public function inject(Container $container): void
24
    {
25
    }
26
27
    /**
28
     * {@inheritdoc}
29
     */
30
    public function register(array &$container, Bind $bind): void
31
    {
32
        $container[(string) $bind] = $bind->getBound();
33
    }
34
35
    /**
36
     * {@inheritdoc}
37
     */
38
    public function setScope($scope): void
39
    {
40
    }
41
}
42