Conditions | 3 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 2 | ||
Bugs | 2 | Features | 2 |
1 | <?php |
||
57 | public function __toString() |
||
58 | { |
||
59 | switch ($this->getTypeCategory()) { |
||
60 | case self::CATEGORY_PK: |
||
61 | $format = '{type}{check}{pos}{comment}{append}'; |
||
62 | break; |
||
63 | case self::CATEGORY_NUMERIC: |
||
64 | $format = '{type}{length}{unsigned}{notnull}{unique}{default}{check}{comment}{pos}{append}'; |
||
65 | break; |
||
66 | default: |
||
67 | $format = '{type}{length}{notnull}{unique}{default}{check}{comment}{pos}{append}'; |
||
68 | } |
||
69 | return $this->buildCompleteString($format); |
||
70 | } |
||
71 | } |
||
72 |