/** * @return GoogleDriveApi * @throws \OldTown\GitLabTools\Analizator\Google\Exception\RuntimeException * @throws \InvalidArgumentException * @throws \Google_Exception */ public function getGoogleDriveApi() { if (null === $this->googleDriveApi) { $this->googleDriveApi = $this->googleDriveApiBuilder->setClient($this->getGoogleClient())->build(); } return $this->googleDriveApi; }
/** * GoogleDriveClient constructor. * * @param GoogleDriveApiBuilder $builder * */ public function __construct(GoogleDriveApiBuilder $builder) { $this->client = $builder->getClient(); }