Conditions | 3 |
Paths | 3 |
Total Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | public function validate() |
||
23 | { |
||
24 | try |
||
25 | { |
||
26 | $this->_subnet = \IpUtils\Factory::getExpression($this->_definition); |
||
27 | |||
28 | // Check that we got a subnet expression and not something else |
||
29 | if (!$this->_subnet instanceof \IpUtils\Expression\Subnet) |
||
30 | return false; |
||
31 | } |
||
32 | catch (\Exception $e) |
||
33 | { |
||
34 | unset($e); |
||
35 | return false; |
||
36 | } |
||
37 | |||
38 | return true; |
||
39 | } |
||
40 | |||
56 |