for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Anax\HTMLForm;
/**
* Form element
*/
class FormElementTel extends FormElementInput
{
* 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'] = 'tel';
$this->UseNameAsDefaultLabel();
}