Conditions | 1 |
Total Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
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) |
||
23 | { |
||
24 | $this->type = $type; |
||
25 | |||
26 | parent::__construct($name, $options); |
||
27 | } |
||
28 | |||
29 | protected function getType(): string |
||
30 | { |
||
31 | return $this->type; |
||
32 | } |
||
33 | })->render(); |
||
34 | } |
||
41 |