Completed
Push — master ( cf3a23...901aad )
by mw
8s
created

NullCallbackLoader   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 45
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 45
wmc 6
lcom 0
cbo 0
rs 10

6 Methods

Rating   Name   Duplication   Size   Complexity  
A registerCallback() 0 1 1
A registerExpectedReturnType() 0 1 1
A registerCallbackContainer() 0 1 1
A load() 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
 * @deprecated since 1.1, use NullCallbackInstantiator
9
 *
10
 * @author mwjames
11
 */
12
class NullCallbackLoader implements CallbackLoader {
13
14
	/**
15
	 * @since 1.0
16
	 *
17
	 * {@inheritDoc}
18
	 */
19
	public function registerCallback( $handlerName, \Closure $callback ) {}
20
21
	/**
22
	 * @since 1.0
23
	 *
24
	 * {@inheritDoc}
25
	 */
26
	public function registerExpectedReturnType( $handlerName, $type ) {}
27
28
	/**
29
	 * @since 1.1
30
	 *
31
	 * {@inheritDoc}
32
	 */
33
	public function registerCallbackContainer( CallbackContainer $callbackContainer ) {}
34
35
	/**
36
	 * @since 1.0
37
	 *
38
	 * {@inheritDoc}
39
	 */
40
	public function load( $handlerName ) {}
41
42
	/**
43
	 * @since 1.2
44
	 *
45
	 * {@inheritDoc}
46
	 */
47
	public function create( $handlerName ) {}
48
49
	/**
50
	 * @since 1.0
51
	 *
52
	 * {@inheritDoc}
53
	 */
54
	public function singleton( $handlerName ) {}
55
56
}
57