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