| Code Coverage | ||||||||||
| Classes and Traits | Functions and Methods | Lines | ||||||||
| Total |  | 100.00% | 1 / 1 |  | 100.00% | 4 / 4 | CRAP |  | 100.00% | 5 / 5 | 
| City |  | 100.00% | 1 / 1 |  | 100.00% | 4 / 4 | 4 |  | 100.00% | 5 / 5 | 
| __construct |  | 100.00% | 1 / 1 | 1 |  | 100.00% | 2 / 2 | |||
| getName |  | 100.00% | 1 / 1 | 1 |  | 100.00% | 1 / 1 | |||
| getLatitude |  | 100.00% | 1 / 1 | 1 |  | 100.00% | 1 / 1 | |||
| getLongitude |  | 100.00% | 1 / 1 | 1 |  | 100.00% | 1 / 1 | |||
| 1 | <?php | 
| 2 | |
| 3 | namespace App\Domain; | 
| 4 | |
| 5 | class City | 
| 6 | { | 
| 7 | public function __construct( | 
| 8 | private string $name, | 
| 9 | private float $latitude, | 
| 10 | private float $longitude, | 
| 11 | ) { | 
| 12 | } | 
| 13 | |
| 14 | public function getName(): string | 
| 15 | { | 
| 16 | return $this->name; | 
| 17 | } | 
| 18 | |
| 19 | public function getLatitude(): float | 
| 20 | { | 
| 21 | return $this->latitude; | 
| 22 | } | 
| 23 | |
| 24 | public function getLongitude(): float | 
| 25 | { | 
| 26 | return $this->longitude; | 
| 27 | } | 
| 28 | } |