canax/htmlform

View on GitHub
src/HTMLForm/FormElementButton.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Anax\HTMLForm;

/**
 * Form element
 */
class FormElementButton extends FormElementInputButton
{
    /**
     * Constructor
     *
     * @param string $name       of the element.
     * @param array  $attributes to set to the element. Default is an empty
     *                           array.
     */
    public function __construct($name, $attributes = [])
    {
        parent::__construct($name, $attributes);
        $this['type'] = 'button';
        $this->UseNameAsDefaultValue();
    }
}