Total Complexity | 2 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
7 | trait ControllerTrait |
||
8 | { |
||
9 | abstract protected function request(): \WebServCo\Framework\Interfaces\RequestInterface; |
||
10 | |||
11 | /** |
||
12 | * @param mixed $key Can be an array, a string, |
||
13 | * or a special formatted string |
||
14 | * (eg 'i18n/lang'). |
||
15 | * @param mixed $value The value to be stored. |
||
16 | * @return bool True on success and false on failure. |
||
17 | */ |
||
18 | abstract protected function setData($key, $value): bool; |
||
19 | |||
20 | protected function setupPaths(): void |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * Called (optionally) by each method. |
||
29 | */ |
||
30 | protected function init(): void |
||
35 |