Fixed docblock

This commit is contained in:
Alex Bilbie 2015-04-06 08:23:18 +01:00
parent 39df4ff9b1
commit 9985f3eee2

View File

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