Completed
Push — master ( 71c961...029a55 )
by Jáchym
08:07
created

ApplicationResponseEvent   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 3
c 2
b 0
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 getResponse() 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\IResponse;
12
use Symfony\Component\EventDispatcher\Event;
13
14
15
final class ApplicationResponseEvent extends Event
16
{
17
18
	/**
19
	 * @var Application
20
	 */
21
	private $application;
22
23
	/**
24
	 * @var IResponse
25
	 */
26
	private $response;
27
28
29 1
	public function __construct(Application $application, IResponse $response)
30
	{
31 1
		$this->application = $application;
32 1
		$this->response = $response;
33 1
	}
34
35
36
	/**
37
	 * @return Application
38
	 */
39 1
	public function getApplication()
40
	{
41 1
		return $this->application;
42
	}
43
44
45
	/**
46
	 * @return IResponse
47
	 */
48 1
	public function getResponse()
49
	{
50 1
		return $this->response;
51
	}
52
53
}
54