| 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 |
||
| 54 | 1 | public function __toString(): string |
|
| 55 | { |
||
| 56 | 1 | $default = (isset($this->data['default']) ? $this->data['default'] : null); |
|
| 57 | 1 | $option = (isset($this->data['option']) ? $this->data['option'] : null); |
|
| 58 | |||
| 59 | 1 | return "`{$this->data['field']}` {$this->data['datatype']}" . (!is_null($default) ? " {$default}" : null) . (!is_null($option) ? " {$option}" : null); |
|
| 60 | } |
||
| 62 |