Gush\Helper\StyleHelper::block PHP Method

block() public method

Formats a message as a block of text.
public block ( string | array $messages, string | null $type = null, string | null $style = null, string $prefix = ' ', boolean $padding = false )
$messages string | array The message to write in the block
$type string | null The block type (added in [] on first line)
$style string | null The style to apply to the whole block
$prefix string The prefix for the block
$padding boolean Whether to add vertical padding
    public function block($messages, $type = null, $style = null, $prefix = ' ', $padding = false)
    {
        $this->getStyle()->block($messages, $type, $style, $prefix, $padding);
    }