mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-05-31 14:12:07 +05:30
Default null values (and string type hinting) for various parameters
This commit is contained in:
@@ -4,26 +4,26 @@ interface OAuth2ServerDatabase
|
|||||||
{
|
{
|
||||||
public function validateClient(
|
public function validateClient(
|
||||||
string $clientId,
|
string $clientId,
|
||||||
$clientSecret,
|
string $clientSecret = null,
|
||||||
$redirectUri
|
string $redirectUri = null
|
||||||
);
|
);
|
||||||
|
|
||||||
public function newSession(
|
public function newSession(
|
||||||
string $clientId,
|
string $clientId,
|
||||||
string $redirectUri,
|
string $redirectUri,
|
||||||
string $type = 'user',
|
string $type = 'user',
|
||||||
string $typeId,
|
string $typeId = null,
|
||||||
$authCode,
|
string $authCode = null,
|
||||||
$accessToken,
|
string $accessToken = null,
|
||||||
string $stage = 'request'
|
string $stage = 'request'
|
||||||
);
|
);
|
||||||
|
|
||||||
public function updateSession(
|
public function updateSession(
|
||||||
string $clientId,
|
string $clientId,
|
||||||
string $type = 'user',
|
string $type = 'user',
|
||||||
string $typeId,
|
string $typeId = null,
|
||||||
$authCode,
|
string $authCode = null,
|
||||||
$accessToken,
|
string $accessToken = null,
|
||||||
string $stage
|
string $stage
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user