| 1 | <?php |
||
| 23 | final class IntegerUtility { |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Parse a boolean. |
||
| 27 | * |
||
| 28 | * @param boolean $value The boolean value. |
||
| 29 | * @return integer Returns 1 in case of success, 0 otherwise. |
||
| 30 | */ |
||
| 31 | public static function parseBoolean($value) { |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Parse a string. |
||
| 37 | * |
||
| 38 | * @param string $value The string value. |
||
| 39 | * @return integer Returns the integer represented by the string value.. |
||
| 40 | * @throws IntegerArgumentException Throws an integer argument exception if the string value does not represent an integer. |
||
| 41 | */ |
||
| 42 | public static function parseString($value) { |
||
| 51 | |||
| 52 | } |
||
| 53 |