| Conditions | 1 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 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) |
||
| 27 | { |
||
| 28 | $this->type = $type; |
||
| 29 | |||
| 30 | parent::__construct($name, $options); |
||
| 31 | } |
||
| 32 | |||
| 33 | protected function getType(): string |
||
| 34 | { |
||
| 35 | return $this->type; |
||
| 36 | } |
||
| 37 | })->render(); |
||
| 38 | } |
||
| 45 |