Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | public function convert(): int | string |
||
18 | { |
||
19 | return match ($this->inputFormat) { |
||
20 | IPAddressFormat::BINARY => $this->fromBinaryToLong($this->address), |
||
21 | IPAddressFormat::DECIMAL => $this->fromDecimalToLong($this->address), |
||
22 | IPAddressFormat::HEXADECIMAL => $this->fromHexadecimalToLong($this->address), |
||
23 | default => $this->address, |
||
24 | }; |
||
27 |