Completed
Push — master ( a99b90...0fc9ae )
by Emlyn
09:26
created

AppStarted   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

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 - 2016 Fuel Development Team
8
 * @link       http://fuelphp.com
9
 */
10
11
declare(strict_types=1);
12
13
namespace Fuel\Foundation\Event;
14
15
use Fuel\Foundation\Application;
16
use League\Event\AbstractEvent;
17
18
/**
19
 * Triggered when the application has finished setting up.
20
 *
21
 * @package Fuel\Foundation\Event
22
 */
23
class AppStarted extends AbstractEvent
24 6
{
25
	/**
26 6
	 * @var Application
27
	 */
28
	protected $application;
29
30
	public function __construct(Application $application)
31
	{
32
		$this->application = $application;
33
	}
34
35
	public function getApplication() : Application
36
	{
37
		return $this->application;
38
	}
39
40
	public function getName() : string
41
	{
42
		return 'fuel.application.started';
43
	}
44
}
45