| 1 | <?php |
||
| 26 | class CliScriptDeterminator |
||
| 27 | { |
||
| 28 | /** |
||
| 29 | * The executable to use in non-phar mode. |
||
| 30 | * |
||
| 31 | * @var string |
||
| 32 | */ |
||
| 33 | private $scriptName; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * The cached value. |
||
| 37 | * |
||
| 38 | * @var string |
||
| 39 | */ |
||
| 40 | private $cachedValue; |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Create a new instance. |
||
| 44 | * |
||
| 45 | * @param string $scriptName The executable to use in non-phar mode. |
||
| 46 | */ |
||
| 47 | public function __construct($scriptName) |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Retrieve the home directory. |
||
| 54 | * |
||
| 55 | * @return string |
||
| 56 | */ |
||
| 57 | public function cliExecutable() |
||
| 65 | |||
| 66 | /** |
||
| 67 | * Determine the correct executable. |
||
| 68 | * |
||
| 69 | * @return string |
||
| 70 | */ |
||
| 71 | private function detectCliExecutable() |
||
| 75 | } |
||
| 76 |