1 | <?php |
||
32 | class Deployer extends Container |
||
33 | { |
||
34 | /** |
||
35 | * Global instance of deployer. It's can be accessed only after constructor call. |
||
36 | * @var Deployer |
||
37 | */ |
||
38 | private static $instance; |
||
39 | |||
40 | /** |
||
41 | * @param Application $console |
||
42 | * @param Console\Input\InputInterface $input |
||
43 | * @param Console\Output\OutputInterface $output |
||
44 | */ |
||
45 | public function __construct(Application $console, Console\Input\InputInterface $input, Console\Output\OutputInterface $output) |
||
124 | |||
125 | /** |
||
126 | * @return Deployer |
||
127 | */ |
||
128 | public static function get() |
||
132 | |||
133 | /** |
||
134 | * @param string $name |
||
135 | * @param mixed $value |
||
136 | */ |
||
137 | public static function setDefault($name, $value) |
||
141 | 35 | ||
142 | /** |
||
143 | 35 | * @param string $name |
|
144 | 35 | * @param mixed $default |
|
145 | * @return mixed |
||
146 | 1 | */ |
|
147 | public static function getDefault($name, $default = null) |
||
151 | |||
152 | /** |
||
153 | * @param string $name |
||
154 | * @return boolean |
||
155 | */ |
||
156 | public static function hasDefault($name) |
||
160 | |||
161 | /** |
||
162 | 14 | * @param string $name |
|
163 | * @param array $array |
||
164 | 14 | */ |
|
165 | public static function addDefault($name, $array) |
||
177 | |||
178 | /** |
||
179 | * Run console application. |
||
180 | */ |
||
181 | public function run() |
||
191 | |||
192 | /** |
||
193 | * Transform tasks to console commands. |
||
194 | */ |
||
195 | public function addConsoleCommands() |
||
207 | |||
208 | /** |
||
209 | * @param string $name |
||
210 | * @return mixed |
||
211 | * @throws \InvalidArgumentException |
||
212 | */ |
||
213 | public function __get($name) |
||
221 | |||
222 | /** |
||
223 | * @return Application |
||
224 | */ |
||
225 | public function getConsole() |
||
229 | |||
230 | /** |
||
231 | * @return Console\Input\InputInterface |
||
232 | */ |
||
233 | public function getInput() |
||
237 | |||
238 | /** |
||
239 | * @return Console\Output\OutputInterface |
||
240 | */ |
||
241 | public function getOutput() |
||
245 | |||
246 | /** |
||
247 | * @param string $name |
||
248 | * @return Console\Helper\HelperInterface |
||
249 | */ |
||
250 | public function getHelper($name) |
||
254 | |||
255 | /** |
||
256 | * @return StageStrategy |
||
257 | */ |
||
258 | public function getStageStrategy() |
||
262 | |||
263 | /** |
||
264 | * @return Task\ScriptManager |
||
265 | */ |
||
266 | public function getScriptManager() |
||
270 | |||
271 | /** |
||
272 | * @return LoggerInterface |
||
273 | */ |
||
274 | public function getLogger() |
||
278 | |||
279 | /** |
||
280 | * Collect anonymous stats about Deployer usage for improving developer experience. |
||
281 | * If you are not comfortable with this, you will always be able to disable this |
||
282 | * by setting `allow_anonymous_stats` to false in your deploy.php file. |
||
283 | * |
||
284 | * @param CommandEvent $commandEvent |
||
285 | */ |
||
286 | public function collectAnonymousStats(CommandEvent $commandEvent) |
||
304 | } |
||
305 |
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.