Completed
Pull Request — master (#5)
by Jeroen De
01:38
created

MessageReporterAwareTrait::setMessageReporter()   A

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
c 0
b 0
f 0
ccs 0
cts 3
cp 0
rs 10
cc 1
nc 1
nop 1
crap 2
1
<?php
2
3
namespace Onoi\MessageReporter;
4
5
/**
6
 * @license GNU GPL v2+
7
 * @since 1.3
8
 *
9
 * @author mwjames
10
 */
11
trait MessageReporterAwareTrait {
12
13
	/**
14
	 * @var MessageReporter
15
	 */
16
	protected $messageReporter;
17
18
	/**
19
	 * @param MessageReporter $messageReporter
20
	 *
21
	 * @since 1.3
22
	 *
23
	 */
24
	public function setMessageReporter( MessageReporter $messageReporter ) {
25
		$this->messageReporter = $messageReporter;
26
	}
27
28
}
29