class PersonalAccessTokenResult implements Arrayable, Jsonable, JsonSerializable, Transient

Properties

null|Token read-only $token
protected TValue> $attributes

All the attributes set on the personal access token response.

string $accessTokenId
string $accessToken
string $tokenType
int $expiresIn

Methods

__construct(array $attributes = [])

Create a new result instance.

Token|null
getToken()

Get the token instance.

array
toArray()

Get the instance as an array.

array
jsonSerialize()

Convert the object into something JSON serializable.

string
toJson(int $options = 0)

Convert the object to its JSON representation.

bool
__isset(string $key)

Dynamically determine if an attribute is set.

mixed
__get(string $key)

Dynamically retrieve the value of an attribute.

Details

at line 43
__construct(array $attributes = [])

Create a new result instance.

Parameters

array $attributes

at line 53
Token|null getToken()

Get the token instance.

Return Value

Token|null

at line 64
array toArray()

Get the instance as an array.

Return Value

array

at line 74
array jsonSerialize()

Convert the object into something JSON serializable.

Return Value

array

at line 82
string toJson(int $options = 0)

Convert the object to its JSON representation.

Parameters

int $options

Return Value

string

at line 90
bool __isset(string $key)

Dynamically determine if an attribute is set.

Parameters

string $key

Return Value

bool

at line 102
mixed __get(string $key)

Dynamically retrieve the value of an attribute.

Parameters

string $key

Return Value

mixed