Total Complexity | 4 |
Total Lines | 52 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
5 | abstract class CallActionEventAbstract |
||
6 | { |
||
7 | /** |
||
8 | * @var string |
||
9 | */ |
||
10 | private $controllerName; |
||
11 | |||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | private $actionName; |
||
16 | |||
17 | /** |
||
18 | * @var array |
||
19 | */ |
||
20 | private $actionParams; |
||
21 | |||
22 | /** |
||
23 | * CallActionEventAbstract constructor. |
||
24 | * @param string $controllerName |
||
25 | * @param string $actionName |
||
26 | * @param array $actionParams |
||
27 | */ |
||
28 | public function __construct(string $controllerName, string $actionName, array $actionParams) |
||
29 | { |
||
30 | $this->controllerName = $controllerName; |
||
31 | $this->actionName = $actionName; |
||
32 | $this->actionParams = $actionParams; |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * @return string |
||
37 | */ |
||
38 | public function getControllerName(): string |
||
39 | { |
||
40 | return $this->controllerName; |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * @return string |
||
45 | */ |
||
46 | public function getActionName(): string |
||
47 | { |
||
48 | return $this->actionName; |
||
49 | } |
||
50 | |||
51 | /** |
||
52 | * @return array |
||
53 | */ |
||
54 | public function getActionParams(): array |
||
57 | } |
||
58 | } |
||
59 |