| Conditions | 3 |
| Paths | 4 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | public function __construct(float $latitude, float $longitude, ?float $altitude = null, ?string $relevantText = null) |
||
| 15 | { |
||
| 16 | $this->latitude = $latitude; |
||
| 17 | $this->longitude = $longitude; |
||
| 18 | |||
| 19 | if ($altitude) { |
||
| 20 | $this->altitude = $altitude; |
||
| 21 | } |
||
| 22 | |||
| 23 | if ($relevantText) { |
||
| 24 | $this->relevantText = $relevantText; |
||
| 25 | } |
||
| 59 |