25
25
class FluentClient extends AbstractFluentAdapter implements ClientInterface
26
26
{
27
27
/**
28
+ * Limit clients to grants.
29
+ *
28
30
* @var bool
29
31
*/
30
32
protected $ limitClientsToGrants = false ;
31
33
32
34
/**
33
- * @param Resolver $connection
35
+ * Create a new fluent client instance.
36
+ *
37
+ * @param \Illuminate\Database\ConnectionResolverInterface $resolver
34
38
* @param bool $limitClientsToGrants
35
39
*/
36
40
public function __construct (Resolver $ resolver , $ limitClientsToGrants = false )
@@ -40,6 +44,8 @@ public function __construct(Resolver $resolver, $limitClientsToGrants = false)
40
44
}
41
45
42
46
/**
47
+ * Check if clients are limited to grants.
48
+ *
43
49
* @return bool
44
50
*/
45
51
public function areClientsLimitedToGrants ()
@@ -48,14 +54,18 @@ public function areClientsLimitedToGrants()
48
54
}
49
55
50
56
/**
51
- * @param bool $limit whether or not to limit clients to grants
57
+ * Whether or not to limit clients to grants.
58
+ *
59
+ * @param bool $limit
52
60
*/
53
61
public function limitClientsToGrants ($ limit = false )
54
62
{
55
63
$ this ->limitClientsToGrants = $ limit ;
56
64
}
57
65
58
66
/**
67
+ * Get the client.
68
+ *
59
69
* @param string $clientId
60
70
* @param string $clientSecret
61
71
* @param string $redirectUri
@@ -139,6 +149,8 @@ public function getBySession(SessionEntity $session)
139
149
}
140
150
141
151
/**
152
+ * Create a new client.
153
+ *
142
154
* @param string $name The client's unique name
143
155
* @param string $id The client's unique id
144
156
* @param string $secret The clients' unique secret
@@ -157,6 +169,8 @@ public function create($name, $id, $secret)
157
169
}
158
170
159
171
/**
172
+ * Hydrate the entity.
173
+ *
160
174
* @param $result
161
175
*
162
176
* @return \League\OAuth2\Server\Entity\ClientEntity
0 commit comments