function __construct($c) { $this->apiKey = $c["enjinAPIKey"]; $this->c = $c; parent::__construct($c["siteURL"] . "/api/v1/api.php"); }
/** * @param $host * @param $port * @param int $timeout * @param array $headers */ public function __construct($host, $port, $timeout = 5, array $headers = array()) { $url = "http://{$host}:{$port}/"; parent::__construct($url, $timeout, $headers); }