Google\Cloud\Datastore\GeoPoint::checkContext PHP Метод

checkContext() приватный Метод

Let people know if they accidentally use the getter in setter context.
private checkContext ( string $method, array $args ) : void
$method string the method name
$args array The method arguments
Результат void
    private function checkContext($method, array $args)
    {
        if (count($args) > 0) {
            throw new InvalidArgumentException(sprintf('Calling method %s with arguments is unsupported.', $method));
        }
    }