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