| Total Complexity | 2 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | trait InputFactoryTrait |
||
| 11 | { |
||
| 12 | 16 | private function createInput($name, $required = true): Input |
|
| 13 | { |
||
| 14 | 16 | $input = new Input($name); |
|
| 15 | 16 | $input->setRequired($required) |
|
| 16 | 16 | ->getFilterChain()->attach(new Filter\StripTags()) |
|
| 17 | 16 | ->attach(new Filter\StringTrim()); |
|
| 18 | 16 | return $input; |
|
| 19 | } |
||
| 20 | |||
| 21 | 16 | private function createBooleanInput(string $name, bool $required = true): Input |
|
| 34 | } |
||
| 35 | } |
||
| 36 |