Skip to content

Commit 27a4f34

Browse files
Add getScopesAttribute and getScopesAttribute methods (#1709)
* Add getScopesAttribute and setScopesAttribute methods * Update Client.php --------- Co-authored-by: Taylor Otwell <[email protected]>
1 parent 09305ed commit 27a4f34

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

Diff for: src/Client.php

+21
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,27 @@ public function getGrantTypesAttribute()
115115
return $this->attributes['grant_types'] ?? null;
116116
}
117117

118+
/**
119+
* Get the scopes for the client.
120+
*
121+
* @return array|null
122+
*/
123+
public function getScopesAttribute()
124+
{
125+
return $this->attributes['scopes'] ?? null;
126+
}
127+
128+
/**
129+
* Set the scopes for the client.
130+
*
131+
* @param array|null $scopes
132+
* @return void
133+
*/
134+
public function setScopesAttribute(?array $scopes)
135+
{
136+
$this->attributes['scopes'] = $scopes;
137+
}
138+
118139
/**
119140
* The temporary non-hashed client secret.
120141
*

0 commit comments

Comments
 (0)