Conditions | 4 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 4.1755 |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
25 | 21 | public function setValues(array $values) |
|
26 | { |
||
27 | |||
28 | 21 | foreach ($values as & $value) { |
|
29 | 21 | if (PHP_INT_SIZE == 4 && is_double($value)) { |
|
30 | //TODO: 32bit - handle this specially? |
||
31 | $value = $this->castValueToSimpleType('integer', $value); |
||
32 | } |
||
33 | |||
34 | 21 | $this->checkType('integer', $value, true); |
|
35 | 15 | } |
|
36 | |||
37 | 15 | parent::setValues($values); |
|
38 | 15 | } |
|
39 | } |
||
40 |