Gush\ThirdParty\Bitbucket\BitBucketClient::__construct PHP Метод

__construct() публичный Метод

public __construct ( array $options = [], Bitbucket\API\Http\Client $httpClient = null )
$options array
$httpClient Bitbucket\API\Http\Client
    public function __construct(array $options = [], Client $httpClient = null)
    {
        $this->errorListener = new ErrorListener();
        $this->httpClient = $httpClient ?: new Client($options);
        $this->httpClient->addListener($this->errorListener);
        $this->resultPagerListener = new ResultPagerListener($this->httpClient);
        $this->httpClient->addListener($this->resultPagerListener);
        $this->options = $options;
    }