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));
        }
    }