From 71c9b4411be311eddf6f3cf4f702bbbe6de34da4 Mon Sep 17 00:00:00 2001 From: Andrew Winter Date: Wed, 17 Jan 2024 14:36:01 +0900 Subject: [PATCH 1/2] Add getScopesAttribute and setScopesAttribute methods --- src/Client.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/Client.php b/src/Client.php index ccb8c17d2..89488793a 100644 --- a/src/Client.php +++ b/src/Client.php @@ -115,6 +115,27 @@ public function getGrantTypesAttribute() return $this->attributes['grant_types'] ?? null; } + /** + * Get the scopes requested. + * + * @return array|null + */ + public function getScopesAttribute() + { + return $this->attributes['scopes'] ?? null; + } + + /** + * Set the value of the scopes attribute. + * + * @@param array|null $scopes + * @return void + */ + public function setScopesAttribute(?array $scopes) + { + $this->attributes['scopes'] = $scopes; + } + /** * The temporary non-hashed client secret. * From 2b8d6b8bf6893f8589bf2374b81af1a4a0365123 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Wed, 17 Jan 2024 08:55:22 -0600 Subject: [PATCH 2/2] Update Client.php --- src/Client.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Client.php b/src/Client.php index 89488793a..57f2ae7d9 100644 --- a/src/Client.php +++ b/src/Client.php @@ -116,7 +116,7 @@ public function getGrantTypesAttribute() } /** - * Get the scopes requested. + * Get the scopes for the client. * * @return array|null */ @@ -126,9 +126,9 @@ public function getScopesAttribute() } /** - * Set the value of the scopes attribute. + * Set the scopes for the client. * - * @@param array|null $scopes + * @param array|null $scopes * @return void */ public function setScopesAttribute(?array $scopes)