1 | <?php |
||
29 | abstract class AbstractCommand extends Command { |
||
30 | |||
31 | /** |
||
32 | * Displays the header. |
||
33 | * |
||
34 | * @param StyleInterface $io The I/O. |
||
35 | * @param string $header The header. |
||
36 | * @return void |
||
37 | */ |
||
38 | protected function displayHeader(StyleInterface $io, $header) { |
||
43 | /** |
||
44 | * Displays the title. |
||
45 | * |
||
46 | * @param StyleInterface $io The I/O. |
||
47 | * @param string $title The title. |
||
48 | * @return void |
||
49 | */ |
||
50 | protected function displayTitle(StyleInterface $io, $title) { |
||
53 | |||
54 | /** |
||
55 | * Get a checkbox. |
||
56 | * |
||
57 | * @param bool $checked Checked ? |
||
58 | * @return string Returns the checkbox. |
||
59 | */ |
||
60 | protected function getCheckbox($checked) { |
||
63 | |||
64 | /** |
||
65 | * Get the kernel. |
||
66 | * |
||
67 | * @return KernelInterface|null Returns the kernel in case of success, null othrewise. |
||
68 | */ |
||
69 | protected function getKernel() { |
||
75 | |||
76 | /** |
||
77 | * Create a style. |
||
78 | * |
||
79 | * @param InputInterface $input The input. |
||
80 | * @param OutputInterface $output The output. |
||
81 | * @return StyleInterface Returns the style. |
||
82 | */ |
||
83 | protected function newStyle(InputInterface $input, OutputInterface $output) { |
||
86 | } |
||
87 |