ApplicationEvent::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
ccs 3
cts 3
cp 1
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
3
/**
4
 * This file is part of Symnedi.
5
 * Copyright (c) 2014 Tomas Votruba (http://tomasvotruba.cz)
6
 */
7
8
namespace Symnedi\EventDispatcher\Event;
9
10
use Nette\Application\Application;
11
use Symfony\Component\EventDispatcher\Event;
12
13
14
final class ApplicationEvent extends Event
15
{
16
17
	/**
18
	 * @var Application
19
	 */
20
	private $application;
21
22
23 5
	public function __construct(Application $application)
24
	{
25 5
		$this->application = $application;
26 5
	}
27
28
29
	/**
30
	 * @return Application
31
	 */
32 1
	public function getApplication()
33
	{
34 1
		return $this->application;
35
	}
36
37
}
38