/** * BattleNetClient constructor. * * @param string $prefix */ public function __construct($prefix) { $this->prefix = $prefix; if (!Config::isValid()) { $this->throwException('Configuration not set via BattleNet\\Config.'); } $this->code = 200; $this->message = ''; $this->url = ''; $this->apiKey = Config::getApiKey(); $this->server = Config::getServer(); $this->locale = Config::getLocale(); }