ConfigAcceptor   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getConfig() 0 4 1
A setConfig() 0 4 1
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