1 | <?php namespace Limoncello\Templates\Commands; |
||
30 | class TemplatesCommand implements CommandInterface |
||
31 | { |
||
32 | /** Argument name */ |
||
33 | const ARG_ACTION = 'action'; |
||
34 | |||
35 | /** Command action */ |
||
36 | const ACTION_CLEAR_CACHE = 'clear-cache'; |
||
37 | |||
38 | /** Command action */ |
||
39 | const ACTION_CREATE_CACHE = 'cache'; |
||
40 | |||
41 | /** |
||
42 | * @inheritdoc |
||
43 | */ |
||
44 | 1 | public static function getName(): string |
|
48 | |||
49 | /** |
||
50 | * @inheritdoc |
||
51 | */ |
||
52 | 1 | public static function getDescription(): string |
|
56 | |||
57 | /** |
||
58 | * @inheritdoc |
||
59 | */ |
||
60 | 1 | public static function getHelp(): string |
|
64 | |||
65 | /** |
||
66 | * @inheritdoc |
||
67 | */ |
||
68 | 1 | public static function getArguments(): array |
|
81 | |||
82 | /** |
||
83 | * @inheritdoc |
||
84 | */ |
||
85 | 1 | public static function getOptions(): array |
|
89 | |||
90 | /** |
||
91 | * @inheritdoc |
||
92 | * |
||
93 | * @SuppressWarnings(PHPMD.StaticAccess) |
||
94 | */ |
||
95 | 3 | public static function execute(ContainerInterface $container, IoInterface $inOut): void |
|
110 | |||
111 | /** |
||
112 | * @param ContainerInterface $container |
||
113 | * |
||
114 | * @return void |
||
115 | */ |
||
116 | 1 | protected function executeClear(ContainerInterface $container): void |
|
127 | |||
128 | /** |
||
129 | * @param ContainerInterface $container |
||
130 | * |
||
131 | * @return void |
||
132 | * |
||
133 | * @SuppressWarnings(PHPMD.StaticAccess) |
||
134 | */ |
||
135 | 1 | protected function executeCache(ContainerInterface $container): void |
|
148 | |||
149 | /** |
||
150 | * @param ContainerInterface $container |
||
151 | * |
||
152 | * @return array |
||
153 | */ |
||
154 | 2 | protected function getTemplatesSettings(ContainerInterface $container): array |
|
160 | } |
||
161 |