Total Complexity | 4 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class Input implements InputInterface |
||
11 | { |
||
12 | /** @codeCoverageIgnore */ |
||
13 | private function __construct() |
||
14 | { |
||
15 | } |
||
16 | |||
17 | public static function create(string $type, string $name, array $options = []): string |
||
18 | { |
||
19 | return (new class($type, $name, $options) extends AbstractBuilder { |
||
20 | protected $type; |
||
21 | |||
22 | public function __construct($type, $name, $options) |
||
27 | } |
||
28 | |||
29 | protected function getType(): string |
||
30 | { |
||
31 | return $this->type; |
||
32 | } |
||
33 | })->render(); |
||
34 | } |
||
35 | |||
36 | public static function __callStatic($name, $arguments) |
||
39 | } |
||
40 | } |
||
41 |