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