/** * @param callable|string $name of input * @param string $input_type of input, defaults to password */ public function __construct($name, $input_type = 'password') { parent::__construct($name, $input_type); }
/** * @param callable|string $name * @param string|callable $value */ public function __construct($name, $value = null) { parent::__construct($name, 'hidden'); $this->withValue($value); }