1 | <?php |
||
28 | abstract class AbstractCommand extends Command { |
||
29 | |||
30 | /** |
||
31 | * Displays the header. |
||
32 | * |
||
33 | * @param StyleInterface $io The I/O. |
||
34 | * @return void |
||
35 | */ |
||
36 | protected function displayHeader(StyleInterface $io, $text) { |
||
41 | |||
42 | /** |
||
43 | * Get the application. |
||
44 | * |
||
45 | * @return Application|null Returns the application. |
||
46 | */ |
||
47 | public function getApplication() { |
||
50 | |||
51 | /** |
||
52 | * Get a checkbox. |
||
53 | * |
||
54 | * @param bool $checked Checked ? |
||
55 | * @return string Returns the checkbox. |
||
56 | */ |
||
57 | protected function getCheckbox($checked) { |
||
60 | |||
61 | /** |
||
62 | * Create a style. |
||
63 | * |
||
64 | * @param InputInterface $input The input. |
||
65 | * @param OutputInterface $output The output. |
||
66 | * @return StyleInterface Returns the style. |
||
67 | */ |
||
68 | protected function newStyle(InputInterface $input, OutputInterface $output) { |
||
71 | } |
||
72 |