1 | <?php |
||
21 | class CliApplication extends AbstractCliApplication |
||
22 | { |
||
23 | /** |
||
24 | * The application's console object |
||
25 | * |
||
26 | * @var Console |
||
27 | */ |
||
28 | private $console; |
||
29 | |||
30 | /** |
||
31 | * CliApplication constructor. |
||
32 | * |
||
33 | * @param Input\Cli $input The application's input object. |
||
34 | * @param Registry $config The application's configuration. |
||
35 | * @param CliOutput $output The application's output object. |
||
36 | * @param CliInput $cliInput The application's CLI input handler. |
||
37 | * @param Console $console The application's console object. |
||
38 | */ |
||
39 | public function __construct(Cli $input, Registry $config, CliOutput $output, CliInput $cliInput, Console $console) |
||
45 | |||
46 | /** |
||
47 | * Method to run the application routines. |
||
48 | * |
||
49 | * @return void |
||
50 | * |
||
51 | * @throws \InvalidArgumentException |
||
52 | */ |
||
53 | protected function doExecute() |
||
68 | |||
69 | /** |
||
70 | * Get the application's console object |
||
71 | * |
||
72 | * @return Console |
||
73 | */ |
||
74 | public function getConsole() : Console |
||
78 | |||
79 | /** |
||
80 | * Output a nicely formatted title for the application. |
||
81 | * |
||
82 | * @param string $title The title to display. |
||
83 | * @param string $subTitle A subtitle. |
||
84 | * @param int $width Total width in chars. |
||
85 | * |
||
86 | * @return $this |
||
87 | */ |
||
88 | public function outputTitle(string $title, string $subTitle = '', int $width = 60) : CliApplication |
||
102 | } |
||
103 |
An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.
If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.