| Code Coverage | ||||||||||
| Classes and Traits | Functions and Methods | Lines | ||||||||
| Total |  | 100.00% | 1 / 1 |  | 100.00% | 5 / 5 | CRAP |  | 100.00% | 6 / 6 | 
| GetForecastQuery |  | 100.00% | 1 / 1 |  | 100.00% | 5 / 5 | 5 |  | 100.00% | 6 / 6 | 
| __construct |  | 100.00% | 1 / 1 | 1 |  | 100.00% | 2 / 2 | |||
| getDays |  | 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 | |||
| __toString |  | 100.00% | 1 / 1 | 1 |  | 100.00% | 1 / 1 | |||
| 1 | <?php | 
| 2 | |
| 3 | namespace App\Application; | 
| 4 | |
| 5 | class GetForecastQuery implements Query | 
| 6 | { | 
| 7 | public function __construct( | 
| 8 | private int $days, | 
| 9 | private float $latitude, | 
| 10 | private float $longitude | 
| 11 | ) { | 
| 12 | } | 
| 13 | |
| 14 | public function getDays(): int | 
| 15 | { | 
| 16 | return $this->days; | 
| 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 | |
| 29 | public function __toString(): string | 
| 30 | { | 
| 31 | return $this->getLatitude().','.$this->getLongitude(); | 
| 32 | } | 
| 33 | } |