fireguard/form

View on GitHub
src/Form/Elements/TextElement.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

/*
 * This file is part of the fireguard/form package.
 *
 * (c) Ronaldo Meneguite <ronaldo@fireguard.com.br>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Fireguard\Form\Elements;

use Fireguard\Form\Contracts\FormElementInterface;
use Fireguard\Form\Contracts\FormInputInterface;

class TextElement extends AbstractElement implements FormElementInterface, FormInputInterface
{
    public function getType()
    {
        return 'text';
    }

    public function render()
    {
        return $this->makeInput();
    }
}