Exemple #1
0
 /**
  * Constructor.
  *
  * @param string  $appId
  * @param string  $secret
  * @param Request $request
  * @param Http    $http
  */
 public function __construct($appId, $secret, Request $request, Http $http)
 {
     $this->appId = $appId;
     $this->secret = $secret;
     $this->request = $request;
     $this->http = $http->setExpectedException(OAuthHttpException::class);
 }
Exemple #2
0
 /**
  * Constructor.
  *
  * @param string $appId
  * @param string $secret
  * @param Cache  $cache
  * @param Http   $http
  */
 public function __construct($appId, $secret, Cache $cache, Http $http)
 {
     $this->appId = $appId;
     $this->secret = $secret;
     $this->cache = $cache;
     $this->http = $http->setExpectedException(JsHttpException::class);
 }
Exemple #3
0
 /**
  * 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');
 }
Exemple #4
0
 /**
  * Constructor.
  *
  * @param string $appId
  * @param string $secret
  * @param Cache  $cache
  * @param Http   $http
  */
 public function __construct($appId, $secret, Cache $cache, Http $http)
 {
     $this->appId = $appId;
     $this->secret = $secret;
     $this->cache = $cache;
     $this->http = $http->setExpectedException('EasyWeChat\\Js\\JsHttpException');
 }
Exemple #5
0
 /**
  * Constructor.
  *
  * @param Http $http
  */
 public function __construct(Http $http)
 {
     $this->http = $http->setExpectedException(MaterialHttpException::class);
 }
Exemple #6
0
 /**
  * Constructor.
  *
  * @param Http $http
  */
 public function __construct(Http $http)
 {
     $this->http = $http->setExpectedException('EasyWeChat\\Store\\StoreHttpException');
 }
Exemple #7
0
 /**
  * Constructor.
  *
  * @param Http        $http
  * @param Transformer $transformer
  */
 public function __construct(Http $http, Transformer $transformer)
 {
     $this->http = $http->setExpectedException(StaffHttpException::class);
     $this->transformer = $transformer;
 }
Exemple #8
0
 /**
  * Constructor.
  *
  * @param Http $http
  */
 public function __construct(Http $http)
 {
     $this->http = $http->setExpectedException(EasyWeChat\Stats\StatsHttpException::class);
 }
Exemple #9
0
 /**
  * Constructor.
  *
  * @param Http $http
  */
 public function __construct(Http $http)
 {
     $this->http = $http->setExpectedException(NoticeHttpException::class);
     $this->messageBackup = $this->message;
 }
Exemple #10
0
 /**
  * Constructor.
  *
  * @param Http $http
  */
 public function __construct(Http $http)
 {
     $this->http = $http->setExpectedException('EasyWeChat\\User\\GroupHttpException');
 }
Exemple #11
0
 /**
  * Constructor.
  *
  * @param string $appId
  * @param Http   $http
  */
 public function __construct($appId, Http $http)
 {
     $this->appId = $appId;
     $this->http = $http->setExpectedException('EasyWeChat\\Semantic\\SemanticHttpException');
 }
Exemple #12
0
 /**
  * Constructor.
  *
  * @param Http  $http
  * @param Cache $cache
  */
 public function __construct(Http $http, Cache $cache)
 {
     $this->http = $http->setExpectedException(CardHttpException::class);
     $this->cache = $cache;
 }
Exemple #13
0
 /**
  * Constructor.
  *
  * @param Http  $http
  * @param Cache $cache
  */
 public function __construct(Http $http, Cache $cache)
 {
     $this->http = $http->setExpectedException('EasyWeChat\\Card\\CardHttpException');
     $this->cache = $cache;
 }
Exemple #14
0
 /**
  * Constructor.
  *
  * @param Http        $http
  * @param Transformer $transformer
  */
 public function __construct(Http $http, Transformer $transformer)
 {
     $this->http = $http->setExpectedException('EasyWeChat\\Staff\\StaffHttpException');
     $this->transformer = $transformer;
 }
Exemple #15
0
 /**
  * Constructor.
  *
  * @param Merchant $merchant
  * @param Http     $http
  */
 public function __construct(Merchant $merchant, Http $http)
 {
     $this->merchant = $merchant;
     $this->http = $http->setExpectedException(PaymentHttpException::class);
 }
Exemple #16
0
 /**
  * Constructor.
  *
  * @param string $appId
  * @param Http   $http
  */
 public function __construct($appId, Http $http)
 {
     $this->appId = $appId;
     $this->http = $http->setExpectedException(SemanticHttpException::class);
 }