Services_Hoptoad::__construct PHP Method

__construct() public method

Initialize the Hoptad client
Author: Rich Cavanaugh
public __construct ( string $apiKey, string $environment = 'production', string $client = 'pear', string $reportESTRICT = false, integer $timeout = 2 ) : void
$apiKey string
$environment string
$client string
$reportESTRICT string
$timeout integer
return void
    function __construct($apiKey, $environment = 'production', $client = 'pear', $reportESTRICT = false, $timeout = 2)
    {
        $this->apiKey = $apiKey;
        $this->environment = $environment;
        $this->client = $client;
        $this->reportESTRICT = $reportESTRICT;
        $this->timeout = $timeout;
        $this->setup();
    }