Total Complexity | 2 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
19 | abstract class ControllerInterface extends AbstractPresenter |
||
20 | { |
||
21 | |||
22 | /** |
||
23 | * Method runs controller |
||
24 | * |
||
25 | * @param string $controllerName |
||
26 | * Controller name to be run |
||
27 | * @return mixed Controller execution result |
||
28 | */ |
||
29 | abstract public function run(string $controllerName = ''); |
||
30 | |||
31 | /** |
||
32 | * Method returns controller's name |
||
33 | * |
||
34 | * @return string controller's name |
||
35 | */ |
||
36 | public function getControllerName(): string |
||
37 | { |
||
38 | return $this->getPresenterName(); |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * Method sets controller's name |
||
43 | * |
||
44 | * @param string $controllerName |
||
45 | * controller's name |
||
46 | */ |
||
47 | public function setControllerName(string $controllerName): void |
||
50 | } |
||
51 | } |
||
52 |