| Total Complexity | 4 | 
| Total Lines | 60 | 
| Duplicated Lines | 0 % | 
| Coverage | 100% | 
| Changes | 2 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 15 | class ModelGenerator extends BaseGenerator implements GeneratorInterface | ||
| 16 | { | ||
| 17 | /** | ||
| 18 | * Prepares the data before generation. | ||
| 19 | * | ||
| 20 | * @param array &$data | ||
| 21 | * @return void | ||
| 22 | */ | ||
| 23 | 9 | public function prepareData(array &$data) | |
| 24 |     { | ||
| 25 | 9 | $data['camel'] = []; | |
| 26 | 9 | $data['columns'] = []; | |
| 27 | 9 | $data['indexes'] = []; | |
| 28 | 9 | $data['primaryKeys'] = []; | |
| 29 | 9 | $data['underscore'] = []; | |
| 30 | 9 | $data['columns'] = $this->describe->getTable($data['name']); | |
| 31 | 9 | $data['primaryKey'] = $this->describe->getPrimaryKey($data['name']); | |
| 32 | 9 | } | |
| 33 | |||
| 34 | /** | ||
| 35 | * Generates set of code based on data. | ||
| 36 | * | ||
| 37 | * @return array | ||
| 38 | */ | ||
| 39 | 9 | public function generate() | |
| 75 | } | ||
| 76 | } | ||
| 77 |