IPv4Address   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 6
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A validate() 0 3 1
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