| Total Complexity | 10 |
| Total Lines | 55 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class ColumnParser extends Column |
||
| 8 | { |
||
| 9 | private Column $column; |
||
| 10 | |||
| 11 | public function __construct(Column $column) |
||
| 12 | { |
||
| 13 | $this->column = $column; |
||
| 14 | } |
||
| 15 | |||
| 16 | public function getType(): string |
||
| 17 | { |
||
| 18 | return $this->column->type; |
||
| 19 | } |
||
| 20 | |||
| 21 | public function getLength(): ?int |
||
| 22 | { |
||
| 23 | return $this->column->length; |
||
| 24 | } |
||
| 25 | |||
| 26 | public function isUnique(): bool |
||
| 27 | { |
||
| 28 | return $this->column->isUnique; |
||
| 29 | } |
||
| 30 | |||
| 31 | public function getDefault(): ?string |
||
| 32 | { |
||
| 33 | return $this->column->default; |
||
| 34 | } |
||
| 35 | |||
| 36 | public function isNotNull(): bool |
||
| 37 | { |
||
| 38 | return $this->column->isNotNull; |
||
| 39 | } |
||
| 40 | |||
| 41 | public function getCheck(): ?string |
||
| 42 | { |
||
| 43 | return $this->column->check; |
||
| 44 | } |
||
| 45 | |||
| 46 | public function getComment(): ?string |
||
| 49 | } |
||
| 50 | |||
| 51 | public function getOptions(): array |
||
| 62 | } |
||
| 63 | } |
||
| 64 |