Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
4 / 4
100.00% covered (success)
100.00%
3 / 3
CRAP
100.00% covered (success)
100.00%
1 / 1
Coordinates
100.00% covered (success)
100.00%
4 / 4
100.00% covered (success)
100.00%
3 / 3
3
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
2 / 2
100.00% covered (success)
100.00%
1 / 1
1
 getLatitude
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 getLongitude
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3namespace MediaWiki\IPInfo\Info;
4
5class Coordinates {
6    private float $latitude;
7
8    private float $longitude;
9
10    public function __construct(
11        float $latitude,
12        float $longitude
13    ) {
14        $this->latitude = $latitude;
15        $this->longitude = $longitude;
16    }
17
18    public function getLatitude(): float {
19        return $this->latitude;
20    }
21
22    public function getLongitude(): float {
23        return $this->longitude;
24    }
25}