public static function createNewAuthorizationCode(
        int $ttl,
        string $redirectUri = null,
        TokenOwnerInterface $owner = null,
        Client $client = null,
        $scopes = null
    ): AuthorizationCode {
        $token = static::createNew($ttl, $owner, $client, $scopes);

        $token->redirectUri = $redirectUri ?? '';

        return $token;
    }
public static function createNewAuthorizationCode(
        int $ttl,
        string $redirectUri = null,
        TokenOwnerInterface $owner = null,
        Client $client = null,
        $scopes = null
    ): AuthorizationCode {
        $token = static::createNew($ttl, $owner, $client, $scopes);

        $token->redirectUri = $redirectUri ?? '';

        return $token;
    }
public static function createNewAuthorizationCode ( int $ ttl , string $ redirectUri = null , TokenOwnerInterface $ owner = null , Client $ client = null , $ scopes = null ) : AuthorizationCode { $ token = static :: createNew ( $ ttl , $ owner , $ client , $ scopes ) ; $ token -> redirectUri = $ redirectUri ?? '' ; return $ token ; }
Create a new AuthorizationCode

@param int                          $ttl
@param string                       $redirectUri
@param TokenOwnerInterface          $owner
@param Client                       $client
@param string|string[]|Scope[]|null $scopes
@return AuthorizationCode
Create a new AuthorizationCode