1 | <?php |
||
8 | class AdminEvent extends Event |
||
9 | { |
||
10 | const ADMIN_CREATE = 'event.admin.create'; |
||
11 | const ACTION_CREATE = 'event.action.create'; |
||
12 | |||
13 | protected $configuration; |
||
14 | |||
15 | /** |
||
16 | * @var AdminInterface |
||
17 | */ |
||
18 | protected $admin; |
||
19 | |||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | protected $actionName; |
||
24 | |||
25 | /** |
||
26 | * @param array $configuration |
||
27 | * @return AdminEvent |
||
28 | */ |
||
29 | 6 | public function setConfiguration(array $configuration) |
|
35 | |||
36 | /** |
||
37 | * @return array |
||
38 | */ |
||
39 | 6 | public function getConfiguration() |
|
43 | |||
44 | /** |
||
45 | * @return AdminInterface |
||
46 | */ |
||
47 | public function getAdmin() |
||
48 | { |
||
49 | return $this->admin; |
||
50 | } |
||
51 | |||
52 | /** |
||
53 | * @param AdminInterface $admin |
||
54 | * @return $this |
||
55 | */ |
||
56 | 5 | public function setAdmin($admin) |
|
62 | |||
63 | /** |
||
64 | * @return string |
||
65 | */ |
||
66 | public function getActionName() |
||
67 | { |
||
68 | return $this->actionName; |
||
69 | } |
||
70 | |||
71 | /** |
||
72 | * @param string $actionName |
||
73 | */ |
||
74 | 5 | public function setActionName($actionName) |
|
78 | } |
||
79 |