1 | <?php |
||
32 | abstract class SchemaAwareCommand extends SessionAwareCommand |
||
33 | { |
||
34 | protected $schema; |
||
35 | protected $prefix_dir; |
||
36 | protected $prefix_ns; |
||
37 | protected $pathFile; |
||
38 | protected $namespace; |
||
39 | protected $flexible_container; |
||
40 | |||
41 | /** |
||
42 | * configure |
||
43 | * |
||
44 | * @see PommAwareCommand |
||
45 | */ |
||
46 | protected function configureRequiredArguments() |
||
67 | |||
68 | /** |
||
69 | * configureOptionals |
||
70 | * |
||
71 | * @see PommAwareCommand |
||
72 | */ |
||
73 | protected function configureOptionals() |
||
93 | /** |
||
94 | * execute |
||
95 | * |
||
96 | * @see Command |
||
97 | */ |
||
98 | protected function execute(InputInterface $input, OutputInterface $output) |
||
111 | |||
112 | /** |
||
113 | * getPathFile |
||
114 | * |
||
115 | * Create path file from parameters and namespace. |
||
116 | * |
||
117 | * @access protected |
||
118 | * @param string $config_name |
||
119 | * @param string $file_suffix |
||
120 | * @param string $extra_dir |
||
121 | * @param string $file_name |
||
122 | * @param bool $format_psr4 |
||
123 | * @return string |
||
124 | */ |
||
125 | protected function getPathFile( |
||
154 | |||
155 | /** |
||
156 | * expandPath |
||
157 | * |
||
158 | * Expand path pattern with the context values |
||
159 | * |
||
160 | * @param string $pattern |
||
161 | * @return string |
||
162 | */ |
||
163 | protected function expandPath($pattern) |
||
176 | |||
177 | /** |
||
178 | * getNamespace |
||
179 | * |
||
180 | * Create namespace from parameters. |
||
181 | * |
||
182 | * @access protected |
||
183 | * @param string $config_name |
||
184 | * @param string $extra_ns |
||
185 | * @return string |
||
186 | */ |
||
187 | protected function getNamespace($config_name, $extra_ns = '', $path_pattern = '{session}/{schema}Schema') |
||
200 | |||
201 | /** |
||
202 | * fetchSchemaOid |
||
203 | * |
||
204 | * Get the schema Oid from database. |
||
205 | * |
||
206 | * @access protected |
||
207 | * @return int $oid |
||
208 | * @throws CliException |
||
209 | */ |
||
210 | protected function fetchSchemaOid() |
||
229 | } |
||
230 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.