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