Completed
Pull Request — master (#10)
by
unknown
01:00
created

IPv4Address   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 2
dl 0
loc 9
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A validate() 0 4 1
1
<?php
2
3
namespace Safelist\Definition;
4
5
/**
6
 * Represents an IPv4 address definition
7
 *
8
 * @author Sam Stenvall <[email protected]>
9
 * @copyright Copyright &copy; Sam Stenvall 2014-
10
 * @license http://www.opensource.org/licenses/bsd-license.php New BSD License
11
 */
12
class IPv4Address extends IPAddress
13
{
14
15
	public function validate()
16
	{
17
		return \IpUtils\Address\IPv4::isValid($this->_definition);
18
	}
19
20
}
21