Skip to content

Flash Interfaces

(all in the Centum\Interfaces\Flash namespace)

FlashInterface

success(
    string $text
): void
info(
    string $text
): void
warning(
    string $text
): void
danger(
    string $text
): void
output(): string

FormatterInterface

output(
    Centum\Interfaces\Flash\MessageInterface $message
): string

MessageBagInterface

add(
    Centum\Interfaces\Flash\MessageInterface $message
): void
getMessages(): list<Centum\Interfaces\Flash\MessageInterface>

MessageInterface

getLevel(): non-empty-string
getText(): string

StorageInterface

get(): Centum\Interfaces\Flash\MessageBagInterface
set(
    Centum\Interfaces\Flash\MessageBagInterface $messageBag
): void
reset(): void