Laragear/Alerts

View on GitHub
src/Contracts/Renderer.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Laragear\Alerts\Contracts;

use Illuminate\Support\Collection;

interface Renderer
{
    /**
     * Returns the rendered alerts as a single HTML string.
     *
     * @param  \Illuminate\Support\Collection<int, \Laragear\Alerts\Alert>  $alerts
     * @return string
     */
    public function render(Collection $alerts): string;
}