Conditions | 2 |
Paths | 4 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public function match($value) |
||
16 | { |
||
17 | try |
||
18 | { |
||
19 | $address = \IpUtils\Factory::getAddress($this->_definition); |
||
20 | $otherAddress = \IpUtils\Factory::getExpression($value); |
||
21 | return $address->matches($otherAddress); |
||
22 | } |
||
23 | catch (\Exception $e) |
||
24 | { |
||
25 | unset($e); |
||
26 | return false; |
||
27 | } |
||
28 | } |
||
29 | |||
31 |