ConfigAcceptor::getConfig()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
/**
3
 * @package    Fuel\Config
4
 * @version    2.0
5
 * @author     Fuel Development Team
6
 * @license    MIT License
7
 * @copyright  2010 - 2015 Fuel Development Team
8
 * @link       http://fuelphp.com
9
 */
10
11
namespace Fuel\Config;
12
13
/**
14
 * Accepts a Config Container instance
15
 */
16
trait ConfigAcceptor
17
{
18
	/**
19
	 * @var Container
20
	 */
21
	protected $config;
22
23
	/**
24
	 * {@inheritdoc}
25
	 */
26
	public function getConfig()
27
	{
28
		return $this->config;
29
	}
30
31
	/**
32
	 * {@inheritdoc}
33
	 */
34
	public function setConfig(Container $config)
35
	{
36
		$this->config = $config;
37
	}
38
}
39