ApplicationPresenterEvent   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getApplication() 0 4 1
A getPresenter() 0 4 1
A __construct() 0 5 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