1 | <?php |
||
9 | class ServiceOptions extends AbstractOptions |
||
10 | { |
||
11 | |||
12 | /** |
||
13 | * Path to php binary |
||
14 | * |
||
15 | * @var string |
||
16 | */ |
||
17 | private $phpBin = null; |
||
18 | |||
19 | /** |
||
20 | * Path to phing binary |
||
21 | * |
||
22 | * @var string |
||
23 | */ |
||
24 | private $phingBin = null; |
||
25 | |||
26 | /** |
||
27 | * @param array $options |
||
28 | */ |
||
29 | 19 | public function __construct(array $options = null) |
|
33 | |||
34 | /** |
||
35 | * Sets the php executable |
||
36 | * |
||
37 | * Set it with a value of 'null' to automaticly discover the path |
||
38 | * |
||
39 | * @param null $path |
||
40 | */ |
||
41 | 3 | public function setPhpBin($path = null) |
|
45 | |||
46 | /** |
||
47 | * Get the path to the php executable |
||
48 | * |
||
49 | * Attempt auto discovery via 'which php' if null |
||
50 | * |
||
51 | * @return string |
||
52 | */ |
||
53 | 3 | public function getPhpBin() |
|
70 | |||
71 | /** |
||
72 | * Set path to the phing binary |
||
73 | * |
||
74 | * @param string $phingBin |
||
75 | */ |
||
76 | 3 | public function setPhingBin($phingBin = null) |
|
80 | |||
81 | /** |
||
82 | * Get path to the phing binary |
||
83 | * |
||
84 | * Attempt auto discovery from composer if null |
||
85 | * |
||
86 | * @return string |
||
87 | */ |
||
88 | 9 | public function getPhingBin() |
|
107 | } |
||
108 |
If you suppress an error, we recommend checking for the error condition explicitly: