Completed
Push — master ( ffb65a...cd6af5 )
by mw
01:39
created

EventDispatcherAwareTrait   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A setEventDispatcher() 0 3 1
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