1 | <?php |
||
29 | abstract class AbstractCommand extends Command { |
||
30 | |||
31 | /** |
||
32 | * Displays the header. |
||
33 | * |
||
34 | * @param StyleInterface $io The I/O. |
||
35 | * @return void |
||
36 | */ |
||
37 | protected function displayHeader(StyleInterface $io, $text) { |
||
42 | |||
43 | /** |
||
44 | * Get a checkbox. |
||
45 | * |
||
46 | * @param bool $checked Checked ? |
||
47 | * @return string Returns the checkbox. |
||
48 | */ |
||
49 | protected function getCheckbox($checked) { |
||
52 | |||
53 | /** |
||
54 | * Get the kernel. |
||
55 | * |
||
56 | * @return KernelInterface|null Returns the kernel in case of success, null othrewise. |
||
57 | */ |
||
58 | public function getKernel() { |
||
64 | |||
65 | /** |
||
66 | * Create a style. |
||
67 | * |
||
68 | * @param InputInterface $input The input. |
||
69 | * @param OutputInterface $output The output. |
||
70 | * @return StyleInterface Returns the style. |
||
71 | */ |
||
72 | protected function newStyle(InputInterface $input, OutputInterface $output) { |
||
75 | } |
||
76 |