mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-15 17:56:14 +05:30
Fixed docblock
This commit is contained in:
parent
39df4ff9b1
commit
9985f3eee2
@ -26,7 +26,7 @@ class Server extends AbstractServer
|
||||
/**
|
||||
* @var TokenTypeInterface
|
||||
*/
|
||||
protected $defaultResponseType;
|
||||
protected $defaultTokenType;
|
||||
|
||||
/**
|
||||
* @var DateInterval
|
||||
@ -41,15 +41,15 @@ class Server extends AbstractServer
|
||||
/**
|
||||
* New server instance
|
||||
*
|
||||
* @param TokenTypeInterface $defaultResponseType
|
||||
* @param TokenTypeInterface $defaultTokenType
|
||||
* @param DateInterval $defaultAccessTokenTTL
|
||||
*/
|
||||
public function __construct(
|
||||
TokenTypeInterface $defaultResponseType = null,
|
||||
TokenTypeInterface $defaultTokenType = null,
|
||||
DateInterval $defaultAccessTokenTTL = null
|
||||
) {
|
||||
$this->defaultResponseType = ($defaultResponseType instanceof TokenTypeInterface)
|
||||
? $defaultResponseType
|
||||
$this->defaultResponseType = ($defaultTokenType instanceof TokenTypeInterface)
|
||||
? $defaultTokenType
|
||||
: new BearerTokenType();
|
||||
|
||||
$this->defaultAccessTokenTTL = ($defaultAccessTokenTTL instanceof DateInterval)
|
||||
|
Loading…
Reference in New Issue
Block a user