| Total Complexity | 5 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | class IpType |
||
| 32 | { |
||
| 33 | const IP_V4 = 'A'; |
||
| 34 | const IP_V6 = 'AAAA'; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @var string |
||
| 38 | */ |
||
| 39 | private $type; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @return string |
||
| 43 | * @throws LogicException |
||
| 44 | */ |
||
| 45 | public function getType(): string |
||
| 52 | } |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @param string $type |
||
| 56 | * |
||
| 57 | * @return IpType |
||
| 58 | * @throws LogicException |
||
| 59 | */ |
||
| 60 | public function setType(string $type): IpType |
||
| 75 |