| 1 | <?php |
||
| 23 | class DoubleHelper { |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Determines if a value is a double. |
||
| 27 | * |
||
| 28 | * @param mixed $value The value. |
||
| 29 | * @throws DoubleArgumentException Throws a Double argument exception if the value is not of expected type. |
||
| 30 | */ |
||
| 31 | public static function isDouble($value) { |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Parse a string. |
||
| 39 | * |
||
| 40 | * @param string $value The string value. |
||
| 41 | * @return double Returns the double represented by the string value. |
||
| 42 | * @throws DoubleArgumentException Throws a double argument exception if the string value does not represent a double. |
||
| 43 | */ |
||
| 44 | public static function parseString($value) { |
||
| 51 | |||
| 52 | } |
||
| 53 |