| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 40 | public function convertToPHPValue($value, AbstractPlatform $platform) |
||
| 41 | { |
||
| 42 | if ($value === null) { |
||
| 43 | return null; |
||
| 44 | } |
||
| 45 | |||
| 46 | try { |
||
| 47 | return call_user_func([$this->getIntervalClass(), 'fromString'], $value); |
||
| 48 | } catch (InvalidIntervalFormatException $e) { |
||
| 49 | throw ConversionException::conversionFailed($value, $this->getName()); |
||
| 50 | } |
||
| 51 | } |
||
| 52 | |||
| 66 |