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