/** * @param HttpAdapterInterface $adapter An HTTP adapter. * @param string $clientId Your Client ID. * @param string $privateKey Your Private Key (optional). * @param string $locale A locale (optional). * @param string $region Region biasing (optional). * @param bool $useSsl Whether to use an SSL connection (optional) * @param string $channel Channel to use for reporting purposes */ public function __construct(HttpAdapterInterface $adapter, $clientId, $privateKey = null, $locale = null, $region = null, $useSsl = false, $channel = null) { parent::__construct($adapter, $locale, $region, $useSsl); $this->clientId = $clientId; $this->privateKey = $privateKey; $this->channel = $channel; }
/** * @param HttpAdapterInterface $adapter An HTTP adapter. * @param string $clientId Your Client ID. * @param string $privateKey Your Private Key (optional). * @param string $locale A locale (optional). * @param string $region Region biasing (optional). */ public function __construct(HttpAdapterInterface $adapter, $clientId, $privateKey = null, $locale = null, $region = null) { parent::__construct($adapter, $locale, $region); $this->clientId = $clientId; $this->privateKey = $privateKey; }