Passed
Push — master ( 4f3302...913bce )
by Matthieu
01:55
created

IPv4::maxAddress()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * Trait IPv4 implements version 4
4
 *
5
 * @package IPTools
6
 */
7
namespace mracine\IPTools\IPV4;
8
9
use mracine\IPTools\IPVersion;;
10
11
trait IPv4
12
{
13 2
    public function version()
14
    {
15 2
        return IPVersion::IPv4; 
16
    }
17
18 1
    public static function minAddress()
19
    {
20 1
        return new Address(0);
21
    }
22
23 1
    public static function maxAddress()
24
    {
25 1
        return new Address(0xffffffff);
26
    }
27
}