1 | <?php |
||
24 | abstract class BaseCommand extends Command |
||
25 | { |
||
26 | const COMMAND_PREFIX = 'music-info'; |
||
27 | |||
28 | const COMMAND_NAME = 'undefined'; |
||
29 | |||
30 | const COMMAND_DESCRIPTION = 'Description not set'; |
||
31 | |||
32 | /** |
||
33 | * @var MusicInfo |
||
34 | */ |
||
35 | protected $musicInfo; |
||
36 | |||
37 | 6 | protected function initializeMusicInfo() |
|
43 | |||
44 | 6 | protected function configure() |
|
57 | |||
58 | 6 | protected function initialize(InputInterface $input, OutputInterface $output) |
|
59 | 1 | { |
|
60 | 6 | if ($input->getOption('debug')) { |
|
61 | Debug::enable(); |
||
62 | } |
||
63 | |||
64 | 6 | parent::initialize($input, $output); |
|
65 | 6 | } |
|
66 | |||
67 | /** |
||
68 | * @param $collection |
||
69 | * @param $columns |
||
70 | * @param Table $table |
||
71 | * @return Table |
||
72 | */ |
||
73 | 6 | protected function generateTableForSearchResult($collection, $columns, Table $table) |
|
83 | |||
84 | /** |
||
85 | * @param $collection |
||
86 | * @param $columns |
||
87 | * @param Table $table |
||
88 | * @return Table |
||
89 | */ |
||
90 | 6 | protected function generateTableRows($collection, $columns, Table $table) |
|
104 | } |
||
105 |