Completed
Push — master ( abae3b...04c3fa )
by Thomas
05:59
created

ApplicationEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 53
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 53
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getApplication() 0 3 1
1
<?php
2
namespace keeko\core\event;
3
4
use keeko\core\model\Application;
5
6
/**
7
 */
8
class ApplicationEvent {
9
10
	/**
11
	 */
12
	const POST_CREATE = 'core.application.post_create';
13
14
	/**
15
	 */
16
	const POST_DELETE = 'core.application.post_delete';
17
18
	/**
19
	 */
20
	const POST_SAVE = 'core.application.post_save';
21
22
	/**
23
	 */
24
	const POST_UPDATE = 'core.application.post_update';
25
26
	/**
27
	 */
28
	const PRE_CREATE = 'core.application.pre_create';
29
30
	/**
31
	 */
32
	const PRE_DELETE = 'core.application.pre_delete';
33
34
	/**
35
	 */
36
	const PRE_SAVE = 'core.application.pre_save';
37
38
	/**
39
	 */
40
	const PRE_UPDATE = 'core.application.pre_update';
41
42
	/**
43
	 * @var keeko.core.model
44
	 */
45
	protected $application;
46
47
	/**
48
	 * @param Application $application
49
	 */
50
	public function __construct(Application $application) {
0 ignored issues
show
Unused Code introduced by
The parameter $application is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
51
		$this->application = application;
52
	}
53
54
	/**
55
	 * @return Application
56
	 */
57
	public function getApplication() {
58
		return $this->application;
59
	}
60
}
61