| Total Complexity | 4 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 9 | trait HasLocationCoordinates |
||
| 10 | { |
||
| 11 | #[ORM\Column(type: 'float', precision: 17, scale: 15, nullable: true)] |
||
| 12 | private float $longitude = 0.0; |
||
| 13 | |||
| 14 | #[ORM\Column(type: 'float', precision: 17, scale: 15, nullable: true)] |
||
| 15 | private float $latitude = 0.0; |
||
| 16 | |||
| 17 | public function getLongitude(): float |
||
| 18 | { |
||
| 19 | return $this->longitude; |
||
| 20 | } |
||
| 21 | |||
| 22 | public function setLongitude(float $longitude): void |
||
| 23 | { |
||
| 24 | $this->longitude = $longitude; |
||
| 25 | } |
||
| 26 | |||
| 27 | public function getLatitude(): float |
||
| 30 | } |
||
| 31 | |||
| 32 | public function setLatitude(float $latitude): void |
||
| 37 |