1 | <?php |
||
25 | class Wildcard implements Converter |
||
26 | { |
||
27 | /** |
||
28 | * Checks whether is certain address is valid for the converter implementation |
||
29 | * |
||
30 | * @param string $address The address to check |
||
31 | * |
||
32 | * @return boolean True when the address is valid |
||
33 | */ |
||
34 | 8 | public function isValid($address) |
|
42 | |||
43 | /** |
||
44 | * Converts an IP address or range into a range to easily check for access |
||
45 | * |
||
46 | * @param string $address The IP address / range |
||
47 | * |
||
48 | * @return double[] Array containing the first and last ip in the range |
||
49 | */ |
||
50 | 3 | public function convert($address) |
|
57 | } |
||
58 |