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

GroupEvent::getGroup()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
namespace keeko\core\event;
3
4
use keeko\core\model\Group;
5
6
/**
7
 */
8
class GroupEvent {
9
10
	/**
11
	 */
12
	const POST_ACTION_ADD = 'core.group.post_action_add';
13
14
	/**
15
	 */
16
	const POST_ACTION_REMOVE = 'core.group.post_action_add';
17
18
	/**
19
	 */
20
	const POST_ACTION_UPDATE = 'core.group.post_action_update';
21
22
	/**
23
	 */
24
	const POST_CREATE = 'core.group.post_create';
25
26
	/**
27
	 */
28
	const POST_DELETE = 'core.group.post_delete';
29
30
	/**
31
	 */
32
	const POST_SAVE = 'core.group.post_save';
33
34
	/**
35
	 */
36
	const POST_UPDATE = 'core.group.post_update';
37
38
	/**
39
	 */
40
	const POST_USER_ADD = 'core.group.post_user_add';
41
42
	/**
43
	 */
44
	const POST_USER_REMOVE = 'core.group.post_user_add';
45
46
	/**
47
	 */
48
	const POST_USER_UPDATE = 'core.group.post_user_update';
49
50
	/**
51
	 */
52
	const PRE_ACTION_ADD = 'core.group.pre_action_add';
53
54
	/**
55
	 */
56
	const PRE_ACTION_REMOVE = 'core.group.pre_action_add';
57
58
	/**
59
	 */
60
	const PRE_ACTION_UPDATE = 'core.group.pre_action_update';
61
62
	/**
63
	 */
64
	const PRE_CREATE = 'core.group.pre_create';
65
66
	/**
67
	 */
68
	const PRE_DELETE = 'core.group.pre_delete';
69
70
	/**
71
	 */
72
	const PRE_SAVE = 'core.group.pre_save';
73
74
	/**
75
	 */
76
	const PRE_UPDATE = 'core.group.pre_update';
77
78
	/**
79
	 */
80
	const PRE_USER_ADD = 'core.group.pre_user_add';
81
82
	/**
83
	 */
84
	const PRE_USER_REMOVE = 'core.group.pre_user_add';
85
86
	/**
87
	 */
88
	const PRE_USER_UPDATE = 'core.group.pre_user_update';
89
90
	/**
91
	 * @var keeko.core.model
92
	 */
93
	protected $group;
94
95
	/**
96
	 * @param Group $group
97
	 */
98
	public function __construct(Group $group) {
0 ignored issues
show
Unused Code introduced by
The parameter $group 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->group = group;
100
	}
101
102
	/**
103
	 * @return Group
104
	 */
105
	public function getGroup() {
106
		return $this->group;
107
	}
108
}
109