| 1 | <?php |
||
| 16 | class CodeGenerator { |
||
| 17 | |||
| 18 | const SORT_USESTATEMENTS_DEFAULT = 'default'; |
||
| 19 | |||
| 20 | const SORT_CONSTANTS_DEFAULT = 'default'; |
||
| 21 | |||
| 22 | const SORT_PROPERTIES_DEFAULT = 'default'; |
||
| 23 | |||
| 24 | const SORT_METHODS_DEFAULT = 'default'; |
||
| 25 | |||
| 26 | /** @var CodeGeneratorConfig */ |
||
| 27 | protected $config; |
||
| 28 | |||
| 29 | /** @var ModelGenerator */ |
||
| 30 | protected $generator; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * |
||
| 34 | * @param CodeGeneratorConfig|array $config |
||
| 35 | */ |
||
| 36 | 10 | public function __construct($config = null) { |
|
| 40 | |||
| 41 | 2 | protected function configure($config = null) { |
|
| 50 | |||
| 51 | /** |
||
| 52 | * Returns the used configuration |
||
| 53 | * |
||
| 54 | * @return CodeGeneratorConfig |
||
| 55 | */ |
||
| 56 | 1 | public function getConfig() { |
|
| 59 | |||
| 60 | /** |
||
| 61 | * Generates code from a given model |
||
| 62 | * |
||
| 63 | * @param GenerateableInterface $model |
||
| 64 | * @return string the generated code |
||
| 65 | */ |
||
| 66 | 8 | public function generate(GenerateableInterface $model): string { |
|
| 69 | |||
| 70 | } |
||
| 71 |