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) |
|
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 | /** |
||
106 | * @param MusicInfo $musicInfo |
||
107 | * @return BaseCommand |
||
108 | */ |
||
109 | public function setMusicInfo($musicInfo) |
||
114 | } |
||
115 |