| 1 | <?php |
||
| 25 | class Cidr 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 | 5 | public function isValid($address) |
|
| 38 | |||
| 39 | /** |
||
| 40 | * Converts an IP address or range into a range to easily check for access |
||
| 41 | * |
||
| 42 | * @param string $address The IP address / range |
||
| 43 | * |
||
| 44 | * @return double[] Array containing the first and last ip in the range |
||
| 45 | */ |
||
| 46 | 1 | public function convert($address) |
|
| 55 | } |
||
| 56 |