Click here to Skip to main content
14,699,608 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
class Google_Service_Resource

  /** @var Google_Service $service */

  private $service;

  /** @var Google_Client $client */
  private $client;

  /** @var string $serviceName */
  private $serviceName;

  /** @var string $resourceName */
  private $resourceName;

  /** @var array $methods */
  private $methods;

  public function __construct($service, $serviceName, $resourceName, $resource)
    $this->service = new Google_Service($client);
    $this->client = $service->getClient();
    $this->serviceName = $serviceName;
    $this->resourceName = $resourceName;
    $this->methods = isset($resource['methods']) ?
        $resource['methods'] :
        array($resourceName => $resource);
manoswc 15-Oct-14 6:39am
can anyone help me solve this issue??????
W Balboos, GHB 15-Oct-14 10:32am
Your call to:

$this->service = new Google_Service($client);

seems to be failing. If so, you don't have an instance of the class in $this->service and thus it is not an object.

manoswc 15-Oct-14 10:38am
I solved the issue man anyway thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900