Total Complexity | 4 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class Input implements InputInterface |
||
12 | { |
||
13 | /** @codeCoverageIgnore */ |
||
14 | private function __construct() |
||
16 | } |
||
17 | |||
18 | public static function form(array $inputs, $data = null, array $options = [], string $template = null): string |
||
19 | { |
||
20 | return (new FormBuilder($inputs, $data, $options, $template))->render(); |
||
21 | } |
||
22 | |||
23 | public static function create(string $type, string $name, array $options = []): string |
||
24 | { |
||
25 | return (new class($type, $name, $options) extends InputBuilder { |
||
26 | public function __construct($type, $name, $options) |
||
31 | } |
||
32 | |||
33 | protected function getType(): string |
||
34 | { |
||
35 | return $this->type; |
||
36 | } |
||
37 | })->render(); |
||
38 | } |
||
39 | |||
40 | public static function __callStatic($name, $arguments) |
||
43 | } |
||
44 | } |
||
45 |