| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 42 | 6 | public function asString(): string |
|
| 43 | { |
||
| 44 | 6 | $format = match ($this->getTypeCategory()) { |
|
| 45 | 6 | self::CATEGORY_PK => '{type}{length}{check}{append}', |
|
| 46 | 6 | self::CATEGORY_NUMERIC => '{type}{length}{unsigned}{default}{notnull}{check}{append}', |
|
| 47 | 6 | default => '{type}{length}{default}{notnull}{check}{append}', |
|
| 48 | 6 | }; |
|
| 49 | |||
| 50 | 6 | return $this->buildCompleteString($format); |
|
| 51 | } |
||
| 53 |