setVersion($version); $this->setDevKey($devKey ?: getenv('APPSFLYER_DEV_KEY')); $this->setApiToken($apiToken ?: getenv('APPSFLYER_API_TOKEN')); if (!$this->devKey) { throw new \RuntimeException('The Appsflyer dev_key is not defined!'); } if (!$this->devKey) { throw new \RuntimeException('The Appsflyer dev_key is not defined!'); } } /** * {@inheritdoc} */ public function getVersion() { return $this->version; } /** * {@inheritdoc} */ public function setVersion($version) { $this->version = $version; return $this; } /** * {@inheritdoc} */ public function getDevKey() { return $this->devKey; } /** * {@inheritdoc} */ public function setDevKey($devKey) { $this->devKey = $devKey; return $this; } /** * {@inheritdoc} */ public function getApiToken() { return $this->apiVersion; } /** * {@inheritdoc} */ public function setApiToken($apiToken) { $this->apiVersion = $apiToken; return $this; } }