public function setMessages(array $messages)
    {
        return tap($this, function ($instance) use ($messages) {
            $instance->messages = [$instance->messagesWrapper => $messages];
        });
    }
public function setMessages(array $messages)
    {
        return tap($this, function ($instance) use ($messages) {
            $instance->messages = [$instance->messagesWrapper => $messages];
        });
    }
public function setMessages ( array $ messages ) { return tap ( $ this , function ( $ instance ) use ( $ messages ) { $ instance -> messages = [ $ instance -> messagesWrapper => $ messages ] ; } ) ; }
Set the Payload messages.

@param  array  $output

@return $this
Set the Payload messages .