public function addPassword($name, $label = NULL, $cols = NULL, $maxLength = NULL) { return $this[$name] = (new Controls\TextInput($label, $maxLength))->setAttribute('size', $cols)->setType('password'); }