1 | <?php |
||
29 | class Deployer extends Container |
||
30 | { |
||
31 | /** |
||
32 | * Global instance of deployer. It's can be accessed only after constructor call. |
||
33 | * @var Deployer |
||
34 | */ |
||
35 | private static $instance; |
||
36 | |||
37 | /** |
||
38 | * @param Application $console |
||
39 | * @param Console\Input\InputInterface $input |
||
40 | * @param Console\Output\OutputInterface $output |
||
41 | */ |
||
42 | public function __construct(Application $console, Console\Input\InputInterface $input, Console\Output\OutputInterface $output) |
||
111 | 14 | ||
112 | 14 | /** |
|
113 | 14 | * @return Deployer |
|
114 | */ |
||
115 | public static function get() |
||
119 | |||
120 | /** |
||
121 | * @param string $name |
||
122 | * @param mixed $value |
||
123 | */ |
||
124 | public static function setDefault($name, $value) |
||
128 | |||
129 | /** |
||
130 | * @param string $name |
||
131 | * @param mixed $default |
||
132 | * @return mixed |
||
133 | */ |
||
134 | public static function getDefault($name, $default = null) |
||
138 | |||
139 | /** |
||
140 | * @param string $name |
||
141 | 35 | * @return boolean |
|
142 | */ |
||
143 | 35 | public static function hasDefault($name) |
|
147 | |||
148 | /** |
||
149 | * @param string $name |
||
150 | * @param array $array |
||
151 | */ |
||
152 | public static function addDefault($name, $array) |
||
164 | 14 | ||
165 | /** |
||
166 | * Run console application. |
||
167 | */ |
||
168 | public function run() |
||
177 | |||
178 | /** |
||
179 | * Transform tasks to console commands. |
||
180 | */ |
||
181 | public function addConsoleCommands() |
||
193 | |||
194 | /** |
||
195 | * @param string $name |
||
196 | * @return mixed |
||
197 | * @throws \InvalidArgumentException |
||
198 | */ |
||
199 | public function __get($name) |
||
207 | |||
208 | /** |
||
209 | * @return Application |
||
210 | */ |
||
211 | public function getConsole() |
||
215 | |||
216 | /** |
||
217 | * @return Console\Input\InputInterface |
||
218 | */ |
||
219 | public function getInput() |
||
223 | |||
224 | /** |
||
225 | * @return Console\Output\OutputInterface |
||
226 | */ |
||
227 | public function getOutput() |
||
231 | |||
232 | /** |
||
233 | * @param string $name |
||
234 | * @return Console\Helper\HelperInterface |
||
235 | */ |
||
236 | public function getHelper($name) |
||
240 | |||
241 | /** |
||
242 | * @return StageStrategy |
||
243 | */ |
||
244 | public function getStageStrategy() |
||
248 | |||
249 | /** |
||
250 | * @return Task\ScriptManager |
||
251 | */ |
||
252 | public function getScriptManager() |
||
256 | } |
||
257 |
Since your code implements the magic getter
_get
, this function will be called for any read access on an undefined variable. You can add the@property
annotation to your class or interface to document the existence of this variable.If the property has read access only, you can use the @property-read annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.