interface BankIDMessageResolverInterface

Interface for BankID message resolvers.

Methods

TranslatableMarkup|null
resolve(BankIDResponse $response)

Resolves a BankID response to a translatable markup object.

string|null
getMessage(BankIDResponse $response)

Gets the rendered message string for a BankID response.

TranslatableMarkup
resolveFromErrorCode(string $errorCode)

Resolves a BankID error code to a translatable markup object.

Details

at line 24
TranslatableMarkup|null resolve(BankIDResponse $response)

Resolves a BankID response to a translatable markup object.

Parameters

BankIDResponse $response

The BankID response.

Return Value

TranslatableMarkup|null

The translatable markup message or NULL if no message applies.

at line 35
string|null getMessage(BankIDResponse $response)

Gets the rendered message string for a BankID response.

Parameters

BankIDResponse $response

The BankID response.

Return Value

string|null

The rendered message string or NULL.

at line 46
TranslatableMarkup resolveFromErrorCode(string $errorCode)

Resolves a BankID error code to a translatable markup object.

Parameters

string $errorCode

The error code.

Return Value

TranslatableMarkup

The translatable markup message.