Total Complexity | 3 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class Type |
||
9 | { |
||
10 | /** |
||
11 | * IPv4 address. |
||
12 | * |
||
13 | * @var int |
||
14 | */ |
||
15 | const T_IPv4 = 4; |
||
16 | |||
17 | /** |
||
18 | * IPv6 address. |
||
19 | * |
||
20 | * @var int |
||
21 | */ |
||
22 | const T_IPv6 = 6; |
||
23 | |||
24 | /** |
||
25 | * Get the name of a type. |
||
26 | * |
||
27 | * @param int $type |
||
28 | * |
||
29 | * @return string |
||
30 | * |
||
31 | * @since 1.1.0 |
||
32 | */ |
||
33 | 214 | public static function getName($type) |
|
45 |