GDS\Property\Geopoint::offsetSet PHP Method

offsetSet() public method

ArrayAccess
public offsetSet ( mixed $offset, mixed $value )
$offset mixed
$value mixed
    public function offsetSet($offset, $value)
    {
        if (0 === $offset) {
            $this->setLatitude($value);
            return;
        }
        if (1 === $offset) {
            $this->setLongitude($value);
            return;
        }
        throw new \UnexpectedValueException("Cannot set Geopoint data with offset [{$offset}]");
    }