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