示例#1
0
文件: Http.php 项目: hexing-w/wechat
 /**
  * Constructor.
  *
  * @param AccessToken|null $token
  */
 public function __construct(AccessToken $token = null)
 {
     $this->token = $token;
     parent::__construct();
 }
示例#2
0
文件: Http.php 项目: stingbo/masapi
 /**
  * constructor
  *
  * @param AccessToken $token
  */
 public function __construct($token = null)
 {
     $this->token = $token instanceof AccessToken ? $token->getToken() : $token;
     parent::__construct();
 }