1 | <?php |
||
9 | class TemplatesCommand extends AbstractCommand |
||
10 | { |
||
11 | /** |
||
12 | * TemplatesCollection instance. |
||
13 | * |
||
14 | * @var TemplatesCollection |
||
15 | */ |
||
16 | protected $collection; |
||
17 | |||
18 | protected static $defaultName = 'templates'; |
||
19 | |||
20 | /** |
||
21 | * Constructor. |
||
22 | * |
||
23 | * @param TemplatesCollection $collection |
||
24 | * @param string|null $name |
||
25 | */ |
||
26 | public function __construct(TemplatesCollection $collection, $name = null) |
||
32 | |||
33 | /** |
||
34 | * Configures the current command. |
||
35 | */ |
||
36 | protected function configure() |
||
40 | |||
41 | /** |
||
42 | * Execute the console command. |
||
43 | * |
||
44 | * @return null|int |
||
45 | */ |
||
46 | protected function fire() |
||
53 | |||
54 | /** |
||
55 | * Collect and return templates from a Migrator. |
||
56 | * |
||
57 | * @return array |
||
58 | */ |
||
59 | protected function collectRows() |
||
79 | |||
80 | /** |
||
81 | * Separate rows with a separator. |
||
82 | * |
||
83 | * @param $templates |
||
84 | * |
||
85 | * @return array |
||
86 | */ |
||
87 | protected function separateRows($templates) |
||
98 | } |
||
99 |