| Conditions | 3 |
| Paths | 3 |
| Total Lines | 17 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | protected function getSchema() |
||
| 27 | { |
||
| 28 | $schema = ""; |
||
| 29 | $keyArray = array_keys($this->module->getData()); |
||
| 30 | $lastColumn = array_pop($keyArray); |
||
| 31 | |||
| 32 | foreach ($this->module->getData() as $column => $optionString) { |
||
| 33 | $option = new DataOption($column, $optionString); |
||
| 34 | |||
| 35 | $schema .= $option->getSchema(); |
||
| 36 | |||
| 37 | if ($column != $lastColumn) { |
||
| 38 | $schema .= PHP_EOL . $this->getTabs(3); |
||
| 39 | } |
||
| 40 | } |
||
| 41 | |||
| 42 | return $schema; |
||
| 43 | } |
||
| 45 |