AbstractAppEvent   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getApplication() 0 4 1
A getName() 0 4 1
1
<?php
2
/**
3
 * @package    Fuel\Foundation
4
 * @version    2.0
5
 * @author     Fuel Development Team
6
 * @license    MIT License
7
 * @copyright  2010 - 2017 Fuel Development Team
8
 * @link       http://fuelphp.com
9
 */
10
11
namespace Fuel\Foundation\Event;
12
13
use Fuel\Foundation\Application;
14
use League\Event\AbstractEvent;
15
16
abstract class AbstractAppEvent extends AbstractEvent
17
{
18
	/**
19
	 * @var Application
20
	 */
21
	protected $application;
22
23
	/**
24
	 * @var string
25
	 */
26
	protected $name;
27
28 10
	public function __construct(Application $application)
29
	{
30 10
		$this->application = $application;
31 10
	}
32
33 3
	public function getApplication() : Application
34
	{
35 3
		return $this->application;
36
	}
37
38 10
	public function getName() : string
39
	{
40 10
		return $this->name;
41
	}
42
}
43