ApplicationPresenterEvent::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 2
Bugs 1 Features 0
Metric Value
cc 1
eloc 3
c 2
b 1
f 0
nc 1
nop 2
dl 0
loc 5
rs 9.4285
ccs 4
cts 4
cp 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 Nette\Application\IPresenter;
12
use Nette\Application\UI\Presenter;
13
use Symfony\Component\EventDispatcher\Event;
14
15
16
final class ApplicationPresenterEvent extends Event
17
{
18
19
	/**
20
	 * @var Application
21
	 */
22
	private $application;
23
24
	/**
25
	 * @var IPresenter|Presenter
26
	 */
27
	private $presenter;
28
29
30 6
	public function __construct(Application $application, IPresenter $presenter)
31
	{
32 6
		$this->application = $application;
33 6
		$this->presenter = $presenter;
34 6
	}
35
36
37
	/**
38
	 * @return Application
39
	 */
40 1
	public function getApplication()
41
	{
42 1
		return $this->application;
43
	}
44
45
46
	/**
47
	 * @return Presenter
48
	 */
49 1
	public function getPresenter()
50
	{
51 1
		return $this->presenter;
52
	}
53
54
}
55