| 1 | <?php |
||
| 8 | class CIDR |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @param string $ip |
||
| 12 | * @param array<string, boolean> $ranges |
||
| 13 | * @return bool |
||
| 14 | * @throws \yii\base\NotSupportedException |
||
| 15 | */ |
||
| 16 | public static function matchBulk(string $ip, array $ranges): bool |
||
| 26 | |||
| 27 | public static function match(string $ip, string $range): bool |
||
| 31 | } |
||
| 32 |