16 lines
348 B
PHP
16 lines
348 B
PHP
<?php
|
|
|
|
namespace itguild\forms\form\builders;
|
|
|
|
use itguild\forms\form\inputs\Hidden;
|
|
|
|
class HiddenBuilder
|
|
{
|
|
public static function build(string $name, array $params = []): Hidden
|
|
{
|
|
$value = $params['value'] ?? "";
|
|
unset($params['value']);
|
|
|
|
return new Hidden(name: $name, value: $value, paramsArray: $params);
|
|
}
|
|
} |