| Total Complexity | 5 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 6 | final class UnknownVisitLocation implements VisitLocationInterface |
||
| 7 | { |
||
| 8 | public function getCountryName(): string |
||
| 9 | { |
||
| 10 | return 'Unknown'; |
||
| 11 | } |
||
| 12 | |||
| 13 | public function getLatitude(): string |
||
| 14 | { |
||
| 15 | return '0.0'; |
||
| 16 | } |
||
| 17 | |||
| 18 | public function getLongitude(): string |
||
| 19 | { |
||
| 20 | return '0.0'; |
||
| 21 | } |
||
| 22 | |||
| 23 | public function getCityName(): string |
||
| 24 | { |
||
| 25 | return 'Unknown'; |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Specify data which should be serialized to JSON |
||
| 30 | * @link https://php.net/manual/en/jsonserializable.jsonserialize.php |
||
| 31 | * @return mixed data which can be serialized by <b>json_encode</b>, |
||
| 32 | * which is a value of any type other than a resource. |
||
| 33 | * @since 5.4.0 |
||
| 34 | */ |
||
| 35 | public function jsonSerialize() |
||
| 45 | ]; |
||
| 46 | } |
||
| 47 | } |
||
| 48 |