public function make($service)
    {
        $service = 'Google_Service_'.ucfirst($service);

        if (class_exists($service)) {
            $class = new \ReflectionClass($service);

            return $class->newInstance($this->client);
        }

        throw new UnknownServiceException($service);
    }
public function make($service)
    {
        $service = 'Google_Service_'.ucfirst($service);

        if (class_exists($service)) {
            $class = new \ReflectionClass($service);

            return $class->newInstance($this->client);
        }

        throw new UnknownServiceException($service);
    }
public function make ( $ service ) { $ service = 'Google_Service_' . ucfirst ( $ service ) ; if ( class_exists ( $ service ) ) { $ class = new \ ReflectionClass ( $ service ) ; return $ class -> newInstance ( $ this -> client ) ; } throw new UnknownServiceException ( $ service ) ; }
Getter for the google service.

@param string $service

@throws \Exception

@return \Google_Service
Getter for the google service .