Yoast\WP\SEO\MyYoast_Client\Domain
Token_Set::to_array
Converts the token set to an associative array for storage.
Метод класса: Token_Set{}
Хуков нет.
Возвращает
Массив<Строку,. string|int|null> The token set as an array.
Использование
$Token_Set = new Token_Set(); $Token_Set->to_array(): array;
Код Token_Set::to_array() Token Set::to array Yoast 28.3
public function to_array(): array {
return [
'access_token' => $this->access_token,
'expires_at' => $this->expires_at,
'token_type' => $this->token_type,
'refresh_token' => $this->refresh_token,
'id_token' => $this->id_token,
'scope' => $this->scope,
'error_count' => $this->error_count,
'resource_indicator' => $this->resource_indicator->value(),
];
}