NullEventListener   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 19
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A execute() 0 1 1
A isPropagationStopped() 0 3 1
1
<?php
2
3
namespace Onoi\EventDispatcher\Listener;
4
5
use Onoi\EventDispatcher\EventListener;
6
use Onoi\EventDispatcher\DispatchContext;
7
8
/**
9
 * @license GNU GPL v2+
10
 * @since 1.0
11
 *
12
 * @author mwjames
13
 */
14
class NullEventListener implements EventListener {
15
16
	/**
17
	 * @since 1.0
18
	 *
19
	 * {@inheritDoc}
20
	 */
21
	public function execute( DispatchContext $dispatchContext = null ) {}
22
23
	/**
24
	 * @since 1.0
25
	 *
26
	 * {@inheritDoc}
27
	 */
28 1
	public function isPropagationStopped() {
29 1
		return false;
30
	}
31
32
}
33