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

LocalizationEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 101
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 101
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getLocalization() 0 3 1
1
<?php
2
namespace keeko\core\event;
3
4
use keeko\core\model\Localization;
5
6
/**
7
 */
8
class LocalizationEvent {
9
10
	/**
11
	 */
12
	const POST_CREATE = 'core.localization.post_create';
13
14
	/**
15
	 */
16
	const POST_DELETE = 'core.localization.post_delete';
17
18
	/**
19
	 */
20
	const POST_EXT_LANG_UPDATE = 'core.localization.post_ext_lang_update';
21
22
	/**
23
	 */
24
	const POST_LANGUAGE_VARIANT_ADD = 'core.localization.post_language_variant_add';
25
26
	/**
27
	 */
28
	const POST_LANGUAGE_VARIANT_REMOVE = 'core.localization.post_language_variant_add';
29
30
	/**
31
	 */
32
	const POST_LANGUAGE_VARIANT_UPDATE = 'core.localization.post_language_variant_update';
33
34
	/**
35
	 */
36
	const POST_PARENT_UPDATE = 'core.localization.post_parent_update';
37
38
	/**
39
	 */
40
	const POST_SAVE = 'core.localization.post_save';
41
42
	/**
43
	 */
44
	const POST_SCRIPT_UPDATE = 'core.localization.post_script_update';
45
46
	/**
47
	 */
48
	const POST_UPDATE = 'core.localization.post_update';
49
50
	/**
51
	 */
52
	const PRE_CREATE = 'core.localization.pre_create';
53
54
	/**
55
	 */
56
	const PRE_DELETE = 'core.localization.pre_delete';
57
58
	/**
59
	 */
60
	const PRE_EXT_LANG_UPDATE = 'core.localization.pre_ext_lang_update';
61
62
	/**
63
	 */
64
	const PRE_LANGUAGE_VARIANT_ADD = 'core.localization.pre_language_variant_add';
65
66
	/**
67
	 */
68
	const PRE_LANGUAGE_VARIANT_REMOVE = 'core.localization.pre_language_variant_add';
69
70
	/**
71
	 */
72
	const PRE_LANGUAGE_VARIANT_UPDATE = 'core.localization.pre_language_variant_update';
73
74
	/**
75
	 */
76
	const PRE_PARENT_UPDATE = 'core.localization.pre_parent_update';
77
78
	/**
79
	 */
80
	const PRE_SAVE = 'core.localization.pre_save';
81
82
	/**
83
	 */
84
	const PRE_SCRIPT_UPDATE = 'core.localization.pre_script_update';
85
86
	/**
87
	 */
88
	const PRE_UPDATE = 'core.localization.pre_update';
89
90
	/**
91
	 * @var keeko.core.model
92
	 */
93
	protected $localization;
94
95
	/**
96
	 * @param Localization $localization
97
	 */
98
	public function __construct(Localization $localization) {
0 ignored issues
show
Unused Code introduced by
The parameter $localization 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...
99
		$this->localization = localization;
100
	}
101
102
	/**
103
	 * @return Localization
104
	 */
105
	public function getLocalization() {
106
		return $this->localization;
107
	}
108
}
109