1 | <?php |
||
14 | class Gender |
||
15 | { |
||
16 | /** |
||
17 | * Checks that the users gender matches either f or m. |
||
18 | * |
||
19 | * gender is either: |
||
20 | * - f - female |
||
21 | * - m - gender |
||
22 | * |
||
23 | * @param string $gender |
||
24 | * |
||
25 | * @throws \InvalidArgumentException |
||
26 | * |
||
27 | * @return bool true if is valid else false |
||
28 | */ |
||
29 | public static function is_valid($gender = null) |
||
45 | } |
||
46 |