latitude; } public function getLongitude(): ?float { return $this->longitude; } public function setLatitude(float $lat): self { $this->latitude = $lat; return $this; } public function setLongitude(float $lon): self { $this->longitude = $lon; return $this; } public function isGeocoded(): bool { $latIsntNull = null !== $this->getLatitude(); $longIsntNull = null !== $this->getLongitude(); $bothArentZero = !(0.0 === $this->getLatitude() && 0.0 === $this->getLongitude()); return $latIsntNull && $longIsntNull && $bothArentZero; } }