1 | <?php |
||
22 | class BooleanHelper { |
||
23 | |||
24 | /** |
||
25 | * Determines if a value is a boolean. |
||
26 | * |
||
27 | * @param mixed $value The value. |
||
28 | * @return void |
||
29 | * @throws BooleanArgumentException Throws a Boolean argument exception if the value is not of expected type. |
||
30 | */ |
||
31 | public static function isBoolean($value): void { |
||
36 | |||
37 | /** |
||
38 | * Parse a string. |
||
39 | * |
||
40 | * @param string|null $value The string value. |
||
41 | * @return bool Returns true in case of success, false otherwise. |
||
42 | */ |
||
43 | public static function parseString(?string $value): bool { |
||
62 | } |
||
63 |