Total Complexity | 4 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | class DummyHookPlugin extends Hook\Base |
||
9 | { |
||
10 | public static int $beforeHookCalled = 0; |
||
11 | public static int $beforeActionCalled = 0; |
||
12 | public static int $afterActionCalled = 0; |
||
13 | public static int $afterHookCalled = 0; |
||
14 | |||
15 | public function beforeHook(RunnerHook $hook): void |
||
18 | } |
||
19 | |||
20 | public function beforeAction(RunnerHook $hook, Config\Action $action): void |
||
21 | { |
||
22 | self::$beforeActionCalled++; |
||
23 | } |
||
24 | |||
25 | public function afterAction(RunnerHook $hook, Config\Action $action): void |
||
26 | { |
||
27 | self::$afterActionCalled++; |
||
28 | } |
||
29 | |||
30 | public function afterHook(RunnerHook $hook): void |
||
33 | } |
||
34 | } |
||
35 |