forms/builders/TextAreaBuilder.php

17 lines
347 B
PHP
Raw Permalink Normal View History

2024-05-28 17:10:06 +03:00
<?php
namespace itguild\forms\form\builders;
use itguild\forms\form\inputs\TextArea;
class TextAreaBuilder
{
public static function build(string $name, array $params = [])
{
$value = $params['value'] ?? "";
unset($params['value']);
return new TextArea(name: $name, value: $value, paramsArray: $params);
}
}