1 | <?php |
||
9 | class ExecutableTester |
||
10 | { |
||
11 | /** @type \Icecave\Isolator\Isolator The DIC for global functions. */ |
||
12 | private $_isolator; |
||
13 | |||
14 | /** |
||
15 | * Initialize the executable tester. |
||
16 | * |
||
17 | * @param \Icecave\Isolator\Isolator The DIC for global functions. |
||
18 | */ |
||
19 | public function __construct(Isolator $isolator = null) |
||
23 | |||
24 | /** |
||
25 | * Tests the given path to see if it is an executable command. |
||
26 | * |
||
27 | * @param string $path The path to a command to test. |
||
28 | * @return boolean True if the path is an executable command, false |
||
29 | * otherwise. |
||
30 | */ |
||
31 | public function __invoke($path) |
||
38 | } |
||
39 |