Bluz\Messages\Messages::add PHP Method

add() protected method

Add message to container
protected add ( string $type, string $message, variadic $text ) : void
$type string One of error, notice or success
$message string
$text variadic
return void
    protected function add($type, $message, ...$text)
    {
        $this->init();
        $this->getMessagesStore()[$type][] = Translator::translate($message, ...$text);
    }