public function offsetUnset($offset) { if (0 === $offset) { $this->setLatitude(0.0); return; } if (1 === $offset) { $this->setLongitude(0.0); return; } throw new \UnexpectedValueException("Cannot unset Geopoint data with offset [{$offset}]"); }