GrafiteInc/Forms

View on GitHub
src/Html/DivOpen.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Grafite\Forms\Html;

use Grafite\Forms\Html\HtmlSnippet;
use Grafite\Forms\Builders\AttributeBuilder;

class DivOpen extends HtmlSnippet
{
    public static function render($options = [])
    {
        $attributes = app(AttributeBuilder::class)->render($options['attributes']);

        return "<div {$attributes}>";
    }
}