| 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 | * Related Admin name. |
||
| 17 | * |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | protected $adminName; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var AdminInterface |
||
| 24 | */ |
||
| 25 | protected $admin; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var string |
||
| 29 | */ |
||
| 30 | protected $actionName; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param array $configuration |
||
| 34 | * @return AdminEvent |
||
| 35 | */ |
||
| 36 | 6 | public function setConfiguration(array $configuration) |
|
| 42 | |||
| 43 | /** |
||
| 44 | * @return array |
||
| 45 | */ |
||
| 46 | 6 | public function getConfiguration() |
|
| 50 | |||
| 51 | /** |
||
| 52 | * @return AdminInterface |
||
| 53 | */ |
||
| 54 | public function getAdmin() |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @param AdminInterface $admin |
||
| 61 | * @return $this |
||
| 62 | */ |
||
| 63 | 5 | public function setAdmin($admin) |
|
| 69 | |||
| 70 | /** |
||
| 71 | * @return string |
||
| 72 | */ |
||
| 73 | public function getActionName() |
||
| 77 | |||
| 78 | /** |
||
| 79 | * @param string $actionName |
||
| 80 | */ |
||
| 81 | 5 | public function setActionName($actionName) |
|
| 85 | |||
| 86 | /** |
||
| 87 | * @param string $adminName |
||
| 88 | * @return AdminEvent |
||
| 89 | */ |
||
| 90 | 4 | public function setAdminName($adminName) |
|
| 96 | } |
||
| 97 |