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