| 1 | <?php |
||
| 7 | final class Command |
||
| 8 | { |
||
| 9 | private function __construct() |
||
| 12 | |||
| 13 | /** |
||
| 14 | * Execute command with params. |
||
| 15 | * |
||
| 16 | * @param string $command |
||
| 17 | * @param array $params |
||
| 18 | * |
||
| 19 | * @return bool|string |
||
| 20 | * |
||
| 21 | * @throws \Exception |
||
| 22 | */ |
||
| 23 | 15 | public static function exec($command, array $params = array(), $mergeStdErr=true) |
|
| 50 | |||
| 51 | /** |
||
| 52 | * Bind params to command. |
||
| 53 | * |
||
| 54 | * @param string $command |
||
| 55 | * @param array $params |
||
| 56 | * |
||
| 57 | * @return string |
||
| 58 | */ |
||
| 59 | 12 | public static function bindParams($command, array $params) |
|
| 76 | } |
||
| 77 |