| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | 7 | public function asString(): string |
|
| 30 | { |
||
| 31 | 7 | $format = match ($this->getTypeCategory()) { |
|
| 32 | 7 | self::CATEGORY_PK => '{type}{length}{check}{append}', |
|
| 33 | 7 | self::CATEGORY_NUMERIC => '{type}{length}{unsigned}{default}{notnull}{check}{append}', |
|
| 34 | 7 | default => '{type}{length}{default}{notnull}{check}{append}', |
|
| 35 | 7 | }; |
|
| 36 | |||
| 37 | 7 | return $this->buildCompleteString($format); |
|
| 38 | } |
||
| 40 |