NullDependency::inject()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 0
dl 0
loc 2
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 1
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
     * @return void
24
     */
25
    public function inject(Container $container)
26
    {
27
    }
28
29
    /**
30
     * {@inheritdoc}
31
     *
32
     * @return void
33
     */
34
    public function register(array &$container, Bind $bind)
35
    {
36
        $container[(string) $bind] = $bind->getBound();
37
    }
38
39
    /**
40
     * {@inheritdoc}
41
     */
42
    public function setScope($scope)
43
    {
44
    }
45
}
46