Default null values (and string type hinting) for various parameters

This commit is contained in:
Alex Bilbie 2012-07-06 13:51:05 +01:00
parent ab6db8fe67
commit 8ac1600063

View File

@ -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
); );