public static function input($name, $type = 'text') { $elem = static::createElement($name, 'input'); $elem->attributes['type'] = $type; return $elem; }