| Conditions | 5 |
| Paths | 16 |
| Total Lines | 6 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 5 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 69 | 2 | public function __toString(): string |
|
| 70 | { |
||
| 71 | 2 | $default = (isset($this->data['default']) ? $this->data['default'] : null); |
|
| 72 | 2 | $option = (isset($this->data['option']) ? $this->data['option'] : null); |
|
| 73 | |||
| 74 | 2 | return "`{$this->data['field']}` {$this->data['datatype']}" . ($default !== null ? " DEFAULT '{$default}'" : null) . (!is_null($option) ? " {$option}" : null); |
|
| 75 | } |
||
| 77 |