1 | <?php |
||
24 | abstract class AbstractTypo3Task extends AbstractTask |
||
25 | { |
||
26 | /** |
||
27 | * namePrefix |
||
28 | * |
||
29 | * @var string |
||
30 | */ |
||
31 | protected $namePrefix = 'typo3/'; |
||
32 | |||
33 | /** |
||
34 | * name |
||
35 | * |
||
36 | * @var string |
||
37 | */ |
||
38 | protected $name; |
||
39 | |||
40 | /** |
||
41 | * description |
||
42 | * |
||
43 | * @var string |
||
44 | */ |
||
45 | protected $description; |
||
46 | |||
47 | /** |
||
48 | * getName |
||
49 | * |
||
50 | * @return string |
||
51 | */ |
||
52 | public function getName(): string |
||
56 | |||
57 | /** |
||
58 | * getDescription |
||
59 | * |
||
60 | * @return string |
||
61 | */ |
||
62 | public function getDescription(): string |
||
66 | |||
67 | /** |
||
68 | * getContextCommand |
||
69 | * |
||
70 | * @param $cmd |
||
71 | * @param array $options |
||
72 | * @return string |
||
73 | */ |
||
74 | protected function getContextCommand($cmd, array $options): string |
||
85 | |||
86 | /** |
||
87 | * getOptions |
||
88 | * |
||
89 | * @param array $defaults |
||
90 | * @return array |
||
91 | */ |
||
92 | protected function getOptions(array $defaults): array |
||
102 | |||
103 | /** |
||
104 | * executeCommand |
||
105 | * |
||
106 | * @param $command |
||
107 | * @return bool |
||
108 | */ |
||
109 | protected function executeCommand($command): bool |
||
116 | } |
||
117 |