1 | <?php |
||
11 | class SystemFunctions |
||
12 | { |
||
13 | /** |
||
14 | * Performs a shell_exec call. Acts as proxy. |
||
15 | * |
||
16 | * @param string $command |
||
17 | * @return null|string |
||
18 | */ |
||
19 | public function callShellExec(string $command): ?string |
||
23 | |||
24 | /** |
||
25 | * Checks if a function is defined and not disabled. |
||
26 | * |
||
27 | * @param string $function |
||
28 | * @return bool |
||
29 | */ |
||
30 | public function isFunctionAvailable(string $function): bool |
||
34 | |||
35 | /** |
||
36 | * Checks if we are running on a windows operating system. |
||
37 | * |
||
38 | * @return bool |
||
39 | */ |
||
40 | public function isWindowsOperatingSystem(): bool |
||
44 | } |
||
45 |