/** * Constructor. * * @param string $appId * @param string $secret * @param Input $input * @param Http $http */ public function __construct($appId, $secret, Input $input, Http $http) { $this->appId = $appId; $this->secret = $secret; $this->input = $input; $this->http = $http->setExpectedException('EasyWeChat\\OAuth\\OAuthHttpException'); }
/** * Constructor. * * @param Http $http * @param Transformer $transformer */ public function __construct(Http $http) { $this->http = $http->setExpectedException('EasyWeChat\\Stats\\StatsHttpException'); }