Passed
Push — master ( 7d4fa6...d134f0 )
by Akmal
01:14
created

CallActionEventAbstract::getControllerName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 0
1
<?php declare(strict_types=1);
2
3
namespace OpenEngine\Mika\Core\Components\Route\Events;
4
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
55
    {
56
        return $this->actionParams;
57
    }
58
}
59