MessageReporterAwareTrait   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A setMessageReporter() 0 3 1
1
<?php
2
3
namespace Onoi\MessageReporter;
4
5
/**
6
 * @since 1.3
7
 *
8
 * @license GNU GPL v2+
9
 * @author mwjames
10
 */
11
trait MessageReporterAwareTrait {
12
13
	/**
14
	 * @var MessageReporter
15
	 */
16
	protected $messageReporter;
17
18 1
	public function setMessageReporter( MessageReporter $messageReporter ) {
19 1
		$this->messageReporter = $messageReporter;
20 1
	}
21
22
}
23