Completed
Push — master ( dc4ad7...0cb618 )
by Emlyn
05:13 queued 03:11
created

AbstractComponent   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getConfigPath() 0 5 1
1
<?php
2
/**
3
 * @package    Fuel\Foundation
4
 * @version    2.0
5
 * @author     Fuel Development Team
6
 * @license    MIT License
7
 * @copyright  2010 - 2016 Fuel Development Team
8
 * @link       http://fuelphp.com
9
 */
10
11
declare(strict_types=1);
12
13
namespace Fuel\Foundation;
14
15
use ReflectionClass;
16
17
abstract class AbstractComponent implements ComponentInterface
18
{
19
	/**
20
	 * {@inheritdoc}
21
	 */
22 3
	public function getConfigPath() : string
23
	{
24 3
		$reflection = new ReflectionClass(static::class);
25 3
		return dirname($reflection->getFileName());
26
	}
27
}
28