function __construct($apiKey = false) { parent::__construct(); if (!$apiKey) { throw new \Exception("Missing API Key", 1); } $this->apiKey = $apiKey; }