<?php
namespace gnomephp\form;
class Input extends FormField{
protected $type = 'text';
public function __construct($formId, $url, $name, $value, $props, $type){
parent::__construct($formId, $url, $name, $value, $props);
$this->type = $type;
}
public function __toString(){
return '<input type="'.$this->type.'" value="'.$this->value.'" name="'.$this->name.'"'.$this->buildProps($this->props).' />';
}
}