Conditions | 4 |
Paths | 4 |
Total Lines | 13 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 20 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
57 | public function getValue() |
||
58 | { |
||
59 | switch ($this->type) { |
||
60 | case self::TYPE_INTEGER: |
||
61 | return intval($this->value); |
||
62 | case self::TYPE_DATETIME: |
||
63 | return new DateTime($this->value); |
||
64 | case self::TYPE_BOOLEAN: |
||
65 | return boolval($this->value); |
||
66 | default: |
||
67 | return $this->value; |
||
68 | } |
||
69 | } |
||
70 | |||
100 |