Conditions | 3 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
49 | public function __toString(): string |
||
50 | { |
||
51 | switch ($this->getTypeCategory()) { |
||
52 | case self::CATEGORY_PK: |
||
53 | $format = '{type}{length}{comment}{check}{append}{pos}'; |
||
54 | break; |
||
55 | case self::CATEGORY_NUMERIC: |
||
56 | $format = '{type}{length}{unsigned}{notnull}{default}{unique}{comment}{append}{pos}{check}'; |
||
57 | break; |
||
58 | default: |
||
59 | $format = '{type}{length}{notnull}{default}{unique}{comment}{append}{pos}{check}'; |
||
60 | } |
||
61 | |||
62 | return $this->buildCompleteString($format); |
||
63 | } |
||
65 |