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

ActivityEvent::getActivity()   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\Activity;
5
6
/**
7
 */
8
class ActivityEvent {
9
10
	/**
11
	 */
12
	const POST_ACTOR_UPDATE = 'core.activity.post_actor_update';
13
14
	/**
15
	 */
16
	const POST_CREATE = 'core.activity.post_create';
17
18
	/**
19
	 */
20
	const POST_DELETE = 'core.activity.post_delete';
21
22
	/**
23
	 */
24
	const POST_SAVE = 'core.activity.post_save';
25
26
	/**
27
	 */
28
	const POST_TARGET_UPDATE = 'core.activity.post_target_update';
29
30
	/**
31
	 */
32
	const POST_UPDATE = 'core.activity.post_update';
33
34
	/**
35
	 */
36
	const PRE_ACTOR_UPDATE = 'core.activity.pre_actor_update';
37
38
	/**
39
	 */
40
	const PRE_CREATE = 'core.activity.pre_create';
41
42
	/**
43
	 */
44
	const PRE_DELETE = 'core.activity.pre_delete';
45
46
	/**
47
	 */
48
	const PRE_SAVE = 'core.activity.pre_save';
49
50
	/**
51
	 */
52
	const PRE_TARGET_UPDATE = 'core.activity.pre_target_update';
53
54
	/**
55
	 */
56
	const PRE_UPDATE = 'core.activity.pre_update';
57
58
	/**
59
	 * @var keeko.core.model
60
	 */
61
	protected $activity;
62
63
	/**
64
	 * @param Activity $activity
65
	 */
66
	public function __construct(Activity $activity) {
0 ignored issues
show
Unused Code introduced by
The parameter $activity 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...
67
		$this->activity = activity;
68
	}
69
70
	/**
71
	 * @return Activity
72
	 */
73
	public function getActivity() {
74
		return $this->activity;
75
	}
76
}
77