Conditions | 3 |
Paths | 3 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
56 | 34 | private function determine(): void |
|
57 | { |
||
58 | 34 | foreach (self::DEFINABLE_TYPES_MAP as $typeClass) { |
|
59 | /** @var TypeCastInterface $type */ |
||
60 | 34 | $type = new $typeClass($this->originalValue); |
|
61 | 34 | if ($type->isPossible()){ |
|
62 | 24 | $this->castedValue = $type->getCastedValue(); |
|
63 | 24 | break; |
|
64 | } |
||
71 |