/** * @return GoogleSheetsApi * @throws \OldTown\GitLabTools\Analizator\Google\Exception\RuntimeException * @throws \InvalidArgumentException * @throws \Google_Exception */ public function getGoogleSheetsApi() { if (null === $this->googleSheetsApi) { $this->googleSheetsApi = $this->googleSheetsApiBuilder->setClient($this->getGoogleClient())->build(); } return $this->googleSheetsApi; }
/** * GoogleDriveClient constructor. * * @param GoogleSheetsApiBuilder $builder * */ public function __construct(GoogleSheetsApiBuilder $builder) { $this->client = $builder->getClient(); }