GDS\Property\Geopoint::offsetGet PHP Méthode

offsetGet() public méthode

ArrayAccess
public offsetGet ( mixed $offset ) : float
$offset mixed
Résultat float
    public function offsetGet($offset)
    {
        if (0 === $offset) {
            return $this->getLatitude();
        }
        if (1 === $offset) {
            return $this->getLongitude();
        }
        throw new \UnexpectedValueException("Cannot get Geopoint data with offset [{$offset}]");
    }