EventDispatcherAwareTrait::setEventDispatcher()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 3
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 2
1
<?php
2
3
namespace Onoi\EventDispatcher;
4
5
/**
6
 * @license GNU GPL v2+
7
 * @since 1.1
8
 *
9
 * @author mwjames
10
 */
11
trait EventDispatcherAwareTrait {
12
13
	/**
14
	 * @var EventDispatcher
15
	 */
16
	protected $eventDispatcher;
17
18
	/**
19
	 * @since 1.1
20
	 *
21
	 * @param EventDispatcher $eventDispatcher
22
	 */
23
	public function setEventDispatcher( EventDispatcher $eventDispatcher ) {
24
		$this->eventDispatcher = $eventDispatcher;
25
	}
26
27
}
28