public function __construct() { // Throw exception if cURL extension is not loaded if (!extension_loaded('curl')) { throw new \BadFunctionCallException('The cURL extension is required.'); } }