| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | 7 | public function asString(): string |
|
| 22 | { |
||
| 23 | 7 | $format = match ($this->getTypeCategory()) { |
|
| 24 | 7 | self::CATEGORY_PK => '{type}{check}{append}', |
|
| 25 | 7 | self::CATEGORY_NUMERIC => '{type}{length}{unsigned}{notnull}{unique}{check}{default}{append}', |
|
| 26 | 7 | default => '{type}{length}{notnull}{unique}{check}{default}{append}', |
|
| 27 | 7 | }; |
|
| 28 | |||
| 29 | 7 | return $this->buildCompleteString($format); |
|
| 30 | } |
||
| 32 |