IPv4Address::validate()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace Whitelist\Definition;
4
5
use IpUtils\Address\IPv4;
6
7
/**
8
 * Represents an IPv4 address definition
9
 *
10
 * @author Sam Stenvall <[email protected]>
11
 * @copyright Copyright &copy; Sam Stenvall 2014-
12
 * @license http://www.opensource.org/licenses/bsd-license.php New BSD License
13
 */
14
class IPv4Address extends IPAddress
15
{
16
17
    public function validate()
18
    {
19
        return IPv4::isValid($this->_definition);
20
    }
21
22
}
23