Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
22 | 6 | public function __toString() |
|
23 | { |
||
24 | 6 | switch ($this->getTypeCategory()) { |
|
25 | 6 | case self::CATEGORY_PK: |
|
26 | 1 | $format = '{type}{length}{check}'; |
|
27 | 1 | break; |
|
28 | default: |
||
29 | 6 | $format = '{type}{length}{default}{notnull}{unique}{check}'; |
|
30 | } |
||
31 | 6 | return $this->buildCompleteString($format); |
|
32 | } |
||
33 | } |
||
34 |