Completed
Push — phpstan12 ( 896293...9eb6a1 )
by Akihito
01:15
created

NullDependency   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 27
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
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
     * @return void
13
     */
14
    public function inject(Container $container)
15
    {
16
    }
17
18
    /**
19
     * {@inheritdoc}
20
     *
21
     * @return void
22
     */
23
    public function register(array &$container, Bind $bind)
24
    {
25
    }
26
27
    /**
28
     * {@inheritdoc}
29
     */
30
    public function setScope($scope)
31
    {
32
    }
33
}
34