Completed
Push — 2.x ( e0ffa3...2bc12f )
by Akihito
03:04
created

NullDependency::inject()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

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