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