| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 8 | 
| Code Lines | 4 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 25 | public static function fromAmazonRequest(array $amazonRequest): Speed  | 
            ||
| 26 |     { | 
            ||
| 27 | $speed = new self();  | 
            ||
| 28 | |||
| 29 | $speed->speedInMetersPerSecond = floatval($amazonRequest['speedInMetersPerSecond']);  | 
            ||
| 30 | $speed->accuracyInMetersPerSecond = isset($amazonRequest['accuracyInMetersPerSecond']) ? floatval($amazonRequest['accuracyInMetersPerSecond']) : null;  | 
            ||
| 31 | |||
| 32 | return $speed;  | 
            ||
| 33 | }  | 
            ||
| 35 |