| 1 | <?php |
||
| 11 | class PHPDbgBinFile |
||
| 12 | { |
||
| 13 | /** @var string Realpath to the PHPDbg bin location */ |
||
| 14 | private $phpDbgBin; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * PHPDbgBinFile constructor. |
||
| 18 | */ |
||
| 19 | 3 | public function __construct() |
|
| 23 | |||
| 24 | /** |
||
| 25 | * @return string |
||
| 26 | * @throws \Exception |
||
| 27 | */ |
||
| 28 | 2 | public function getPhpDbgBin() |
|
| 29 | { |
||
| 30 | 2 | if (! $this->isAvailable()) { |
|
| 31 | throw new \RuntimeException('PHPDbg is not available!'); |
||
| 32 | } |
||
| 33 | |||
| 34 | 2 | return $this->phpDbgBin; |
|
| 35 | } |
||
| 36 | |||
| 37 | 3 | public function isAvailable() |
|
| 41 | |||
| 42 | /** |
||
| 43 | * @return string |
||
| 44 | */ |
||
| 45 | 3 | private function getPhpDbgBinLocation() |
|
| 52 | } |
||
| 53 |