Total Complexity | 3 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
19 | final class Util |
||
20 | { |
||
21 | /** |
||
22 | * List of valid action types |
||
23 | * |
||
24 | * @var array<bool> |
||
25 | */ |
||
26 | private static $validTypes = ['php' => true, 'cli' => true]; |
||
27 | |||
28 | |||
29 | /** |
||
30 | * Check the validity of a exec type |
||
31 | * |
||
32 | * @param string $type |
||
33 | * @return bool |
||
34 | */ |
||
35 | 1 | public static function isTypeValid(string $type): bool |
|
38 | } |
||
39 | |||
40 | /** |
||
41 | * Return action type |
||
42 | * |
||
43 | * @param string $action |
||
44 | * @return string |
||
45 | */ |
||
46 | 32 | public static function getExecType(string $action): string |
|
51 |