Beispiel #1
0
 /**
  * constructor
  *
  * @param AccessToken $token
  */
 public function __construct(AccessToken $token = null)
 {
     $this->token = $token;
     parent::__construct();
 }
Beispiel #2
0
 /**
  * constructor
  *
  * @param AccessToken $token
  */
 public function __construct($token = null)
 {
     $this->token = $token instanceof AccessToken ? $token->getToken() : $token;
     parent::__construct();
 }