Total Complexity | 5 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class BaseControllerWithEvents extends Controller |
||
12 | { |
||
13 | public $eventsTest = []; |
||
14 | |||
15 | public function __construct() |
||
16 | { |
||
17 | parent:: __construct(); |
||
18 | $this->onParseRequest([$this, 'checkParseRequest']); |
||
19 | $this->onParseRequest(function () { |
||
20 | $this->eventsTest['parseRequest']++; |
||
21 | }); |
||
22 | } |
||
23 | |||
24 | public function invokeStageTest(string $stage) |
||
25 | { |
||
26 | $this->invokeStage($stage); |
||
27 | } |
||
28 | |||
29 | public function checkParseRequest() |
||
32 | } |
||
33 | |||
34 | public function index() |
||
35 | { |
||
36 | return 'index'; |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * @return string |
||
41 | */ |
||
42 | public function generateViewPath() |
||
45 | } |
||
46 | } |
||
47 |