/** * SpeechToText constructor. * * @param ConfigInterface|null $config * @param ClientInterface|null $client * @param CookieJarInterface|null $cookieJar */ public function __construct(ConfigInterface $config = null, ClientInterface $client = null, CookieJarInterface $cookieJar = null) { $this->config = $config ?: new Config(); $this->config->setBaseUri(static::IBM_URI); $this->cookieJar = $cookieJar ?: new CookieJar(); parent::__construct($this->config, $client); }
/** * ConceptInsights constructor. * * @param ConfigInterface $config * @param ClientInterface|null $client * @param bool $accountId */ public function __construct(ConfigInterface $config = null, ClientInterface $client = null, $accountId = false) { $this->config = $config ?: new Config(); $this->config->setBaseUri(static::IBM_URI); $this->accountId = $accountId; parent::__construct($this->config, $client); }