Total Complexity | 3 |
Total Lines | 44 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | class Resolver |
||
20 | { |
||
21 | /** |
||
22 | * PHAR flag, replaced by box during PHAR building |
||
23 | * |
||
24 | * @var string |
||
25 | */ |
||
26 | private $runtime = '@runtime@'; |
||
27 | |||
28 | /** |
||
29 | * Path to the currently executed 'binary' |
||
30 | * |
||
31 | * @var string |
||
32 | */ |
||
33 | private $executable; |
||
34 | |||
35 | /** |
||
36 | * Resolver constructor. |
||
37 | * |
||
38 | * @param string $executable |
||
39 | */ |
||
40 | public function __construct(string $executable = 'bin/vendor/captainhook') |
||
41 | { |
||
42 | $this->executable = $executable; |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * Return current executed 'binary' |
||
47 | * |
||
48 | * @return string |
||
49 | */ |
||
50 | public function getExecutable(): string |
||
53 | } |
||
54 | |||
55 | /** |
||
56 | * Check if the current runtime is executed via PHAR |
||
57 | * |
||
58 | * @return bool |
||
59 | */ |
||
60 | public function isPharRelease(): bool |
||
65 |