NullContainerBuilder   A
last analyzed

Complexity

Total Complexity 9

Size/Duplication

Total Lines 66
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 66
c 0
b 0
f 0
wmc 9
lcom 0
cbo 0
rs 10

9 Methods

Rating   Name   Duplication   Size   Complexity  
A registerCallback() 0 1 1
A registerCallbackContainer() 0 1 1
A registerFromFile() 0 1 1
A registerObject() 0 1 1
A registerExpectedReturnType() 0 1 1
A registerAlias() 0 1 1
A isRegistered() 0 1 1
A create() 0 1 1
A singleton() 0 1 1
1
<?php
2
3
namespace Onoi\CallbackContainer;
4
5
/**
6
 * @license GNU GPL v2+
7
 * @since 1.0
8
 *
9
 * @author mwjames
10
 */
11
class NullContainerBuilder implements ContainerBuilder {
12
13
	/**
14
	 * @since 1.0
15
	 *
16
	 * {@inheritDoc}
17
	 */
18
	public function registerCallback( $serviceName, callable $callback ) {}
19
20
	/**
21
	 * @since 1.1
22
	 *
23
	 * {@inheritDoc}
24
	 */
25
	public function registerCallbackContainer( CallbackContainer $callbackContainer ) {}
26
27
	/**
28
	 * @since 2.0
29
	 *
30
	 * {@inheritDoc}
31
	 */
32
	public function registerFromFile( $file ) {}
33
34
	/**
35
	 * @since 2.0
36
	 *
37
	 * {@inheritDoc}
38
	 */
39
	public function registerObject( $serviceName, $instance ) {}
40
41
	/**
42
	 * @since 1.0
43
	 *
44
	 * {@inheritDoc}
45
	 */
46
	public function registerExpectedReturnType( $serviceName, $type ) {}
47
48
	/**
49
	 * @since 2.0
50
	 *
51
	 * {@inheritDoc}
52
	 */
53
	public function registerAlias( $serviceName, $alias ) {}
54
55
	/**
56
	 * @since 1.2
57
	 *
58
	 * {@inheritDoc}
59
	 */
60
	public function isRegistered( $serviceName ) { return false; }
61
62
	/**
63
	 * @since 1.1
64
	 *
65
	 * {@inheritDoc}
66
	 */
67
	public function create( $serviceName ) {}
68
69
	/**
70
	 * @since 1.0
71
	 *
72
	 * {@inheritDoc}
73
	 */
74
	public function singleton( $handlerName ) {}
75
76
}
77