Completed
Push — master ( bb7259...dc298a )
by Sam
03:00
created

ArrayReader   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 2
c 1
b 0
f 1
lcom 0
cbo 0
dl 0
loc 29
ccs 5
cts 5
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A readConfiguration() 0 4 1
1
<?php
2
3
namespace Jalle19\StatusManager\Configuration\Reader;
4
5
/**
6
 * Class ArrayReader
7
 * @package   Jalle19\StatusManager\Configuration\Reader
8
 * @copyright Copyright &copy; Sam Stenvall 2016-
9
 * @license   https://www.gnu.org/licenses/gpl.html The GNU General Public License v2.0
10
 */
11
class ArrayReader implements ReaderInterface
12
{
13
14
	/**
15
	 * @var array
16
	 */
17
	private $_configuration;
18
19
20
	/**
21
	 * ArrayReader constructor.
22
	 *
23
	 * @param array $configuration
24
	 */
25 2
	public function __construct(array $configuration)
26
	{
27 2
		$this->_configuration = $configuration;
28 2
	}
29
30
31
	/**
32
	 * @inheritdoc
33
	 */
34 2
	public function readConfiguration()
35
	{
36 2
		return $this->_configuration;
37
	}
38
39
}
40