client = $clientOrConfig; } elseif (\is_array($clientOrConfig)) { $this->client = new \WPMailSMTP\Vendor\Google\Client($clientOrConfig ?: []); } else { $errorMessage = 'WPMailSMTP\\Vendor\\constructor must be array or instance of Google\\Client'; if (\class_exists('TypeError')) { throw new \TypeError($errorMessage); } \trigger_error($errorMessage, \E_USER_ERROR); } } /** * Return the associated Google\Client class. * @return \Google\Client */ public function getClient() { return $this->client; } /** * Create a new HTTP Batch handler for this service * * @return Batch */ public function createBatch() { return new \WPMailSMTP\Vendor\Google\Http\Batch($this->client, \false, $this->rootUrl, $this->batchPath); } }