| Conditions | 4 |
| Paths | 4 |
| Total Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 41 | public function __construct($options = null) |
||
| 42 | { |
||
| 43 | parent::__construct($options); |
||
| 44 | |||
| 45 | if (null === $this->message) { |
||
| 46 | switch ($this->version) { |
||
| 47 | case self::IPV4: |
||
| 48 | $this->message = 'This is not a valid Vietnam ipv4.'; |
||
| 49 | break; |
||
| 50 | case self::IPV6: |
||
| 51 | $this->message = 'This is not a valid Vietnam ipv6.'; |
||
| 52 | break; |
||
| 53 | default: |
||
| 54 | $this->message = 'This is not a valid Vietnam ip.'; |
||
| 55 | break; |
||
| 56 | } |
||
| 57 | } |
||
| 58 | } |
||
| 59 | } |
||
| 60 |