Esempio n. 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);
 }
Esempio n. 2
0
File: Js.php Progetto: khsing/wechat
 /**
  * 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);
 }
Esempio n. 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');
 }
Esempio n. 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');
 }
Esempio n. 5
0
 /**
  * Constructor.
  *
  * @param Http $http
  */
 public function __construct(Http $http)
 {
     $this->http = $http->setExpectedException(MaterialHttpException::class);
 }
Esempio n. 6
0
 /**
  * Constructor.
  *
  * @param Http $http
  */
 public function __construct(Http $http)
 {
     $this->http = $http->setExpectedException('EasyWeChat\\Store\\StoreHttpException');
 }
Esempio n. 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;
 }
Esempio n. 8
0
 /**
  * Constructor.
  *
  * @param Http $http
  */
 public function __construct(Http $http)
 {
     $this->http = $http->setExpectedException(EasyWeChat\Stats\StatsHttpException::class);
 }
Esempio n. 9
0
 /**
  * Constructor.
  *
  * @param Http $http
  */
 public function __construct(Http $http)
 {
     $this->http = $http->setExpectedException(NoticeHttpException::class);
     $this->messageBackup = $this->message;
 }
Esempio n. 10
0
 /**
  * Constructor.
  *
  * @param Http $http
  */
 public function __construct(Http $http)
 {
     $this->http = $http->setExpectedException('EasyWeChat\\User\\GroupHttpException');
 }
Esempio n. 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');
 }
Esempio n. 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;
 }
Esempio n. 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;
 }
Esempio n. 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;
 }
Esempio n. 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);
 }
Esempio n. 16
0
 /**
  * Constructor.
  *
  * @param string $appId
  * @param Http   $http
  */
 public function __construct($appId, Http $http)
 {
     $this->appId = $appId;
     $this->http = $http->setExpectedException(SemanticHttpException::class);
 }