ApplicationEvent   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

2 Methods

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