コード例 #1
0
ファイル: Client.php プロジェクト: suifengtec/wechat
 /**
  * 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);
 }
コード例 #2
0
ファイル: Js.php プロジェクト: 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);
 }
コード例 #3
0
ファイル: Client.php プロジェクト: heyjun/wechat
 /**
  * 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');
 }
コード例 #4
0
ファイル: SDK.php プロジェクト: heyjun/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('EasyWeChat\\Js\\JsHttpException');
 }
コード例 #5
0
ファイル: Material.php プロジェクト: raymonder/wechat
 /**
  * Constructor.
  *
  * @param Http $http
  */
 public function __construct(Http $http)
 {
     $this->http = $http->setExpectedException(MaterialHttpException::class);
 }
コード例 #6
0
ファイル: Manager.php プロジェクト: heyjun/wechat
 /**
  * Constructor.
  *
  * @param Http $http
  */
 public function __construct(Http $http)
 {
     $this->http = $http->setExpectedException('EasyWeChat\\Store\\StoreHttpException');
 }
コード例 #7
0
ファイル: Messenger.php プロジェクト: raymonder/wechat
 /**
  * Constructor.
  *
  * @param Http        $http
  * @param Transformer $transformer
  */
 public function __construct(Http $http, Transformer $transformer)
 {
     $this->http = $http->setExpectedException(StaffHttpException::class);
     $this->transformer = $transformer;
 }
コード例 #8
0
ファイル: Stats.php プロジェクト: heivin/wechat
 /**
  * Constructor.
  *
  * @param Http $http
  */
 public function __construct(Http $http)
 {
     $this->http = $http->setExpectedException(EasyWeChat\Stats\StatsHttpException::class);
 }
コード例 #9
0
ファイル: Notice.php プロジェクト: keepeye/wechat
 /**
  * Constructor.
  *
  * @param Http $http
  */
 public function __construct(Http $http)
 {
     $this->http = $http->setExpectedException(NoticeHttpException::class);
     $this->messageBackup = $this->message;
 }
コード例 #10
0
ファイル: Group.php プロジェクト: heyjun/wechat
 /**
  * Constructor.
  *
  * @param Http $http
  */
 public function __construct(Http $http)
 {
     $this->http = $http->setExpectedException('EasyWeChat\\User\\GroupHttpException');
 }
コード例 #11
0
ファイル: Semantic.php プロジェクト: hexing-w/wechat
 /**
  * Constructor.
  *
  * @param string $appId
  * @param Http   $http
  */
 public function __construct($appId, Http $http)
 {
     $this->appId = $appId;
     $this->http = $http->setExpectedException('EasyWeChat\\Semantic\\SemanticHttpException');
 }
コード例 #12
0
ファイル: Card.php プロジェクト: raymonder/wechat
 /**
  * Constructor.
  *
  * @param Http  $http
  * @param Cache $cache
  */
 public function __construct(Http $http, Cache $cache)
 {
     $this->http = $http->setExpectedException(CardHttpException::class);
     $this->cache = $cache;
 }
コード例 #13
0
ファイル: Card.php プロジェクト: hexing-w/wechat
 /**
  * Constructor.
  *
  * @param Http  $http
  * @param Cache $cache
  */
 public function __construct(Http $http, Cache $cache)
 {
     $this->http = $http->setExpectedException('EasyWeChat\\Card\\CardHttpException');
     $this->cache = $cache;
 }
コード例 #14
0
ファイル: Messagener.php プロジェクト: hexing-w/wechat
 /**
  * Constructor.
  *
  * @param Http        $http
  * @param Transformer $transformer
  */
 public function __construct(Http $http, Transformer $transformer)
 {
     $this->http = $http->setExpectedException('EasyWeChat\\Staff\\StaffHttpException');
     $this->transformer = $transformer;
 }
コード例 #15
0
ファイル: API.php プロジェクト: keepeye/wechat
 /**
  * Constructor.
  *
  * @param Merchant $merchant
  * @param Http     $http
  */
 public function __construct(Merchant $merchant, Http $http)
 {
     $this->merchant = $merchant;
     $this->http = $http->setExpectedException(PaymentHttpException::class);
 }
コード例 #16
0
ファイル: Semantic.php プロジェクト: ruizhengyu/wechat
 /**
  * Constructor.
  *
  * @param string $appId
  * @param Http   $http
  */
 public function __construct($appId, Http $http)
 {
     $this->appId = $appId;
     $this->http = $http->setExpectedException(SemanticHttpException::class);
 }