Completed
Push — psalm ( e5109f )
by Akihito
07:52
created

NullDependency   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 35
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __toString() 0 4 1
A inject() 0 3 1
A register() 0 3 1
A setScope() 0 3 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