/** * @param mixed $content * @param mixed $value * * @since 2.0 */ public function __construct($content = null, $value = null) { parent::__construct(); $this->setContents($content); if (is_null($value)) { $value = $content; } $this->setValue($value); unset($this->attributes['name']); }
/** * @param string $name * @param array $attributes * @param mixed $value * * @since 2.0 */ public function __construct($name = '', array $attributes = [], $value = null) { $attributes['type'] = 'reset'; parent::__construct($name, $attributes, $value); }
/** * @param string $name * @param array $attributes * @param mixed $value * * @since 2.0 */ public function __construct($name = '', array $attributes = [], $value = null) { parent::__construct($name, $attributes, $value); $this->setContents(''); }