Custom.php
4 days ago
Number.php
4 days ago
Open.php
4 days ago
OpenFactory.php
4 days ago
Option.php
4 days ago
OptionFactory.php
4 days ago
OpenFactory.php
22 lines
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace AC\Setting\Control\Input; |
| 6 | |
| 7 | use AC\Setting\AttributeCollection; |
| 8 | |
| 9 | final class OpenFactory |
| 10 | { |
| 11 | public static function create_text( |
| 12 | string $name, |
| 13 | ?string $default = null, |
| 14 | ?string $placeholder = null, |
| 15 | ?AttributeCollection $attributes = null, |
| 16 | ?string $append = null |
| 17 | ): Open { |
| 18 | return new Open($name, 'text', $default, $placeholder, $attributes, $append); |
| 19 | } |
| 20 | |
| 21 | } |
| 22 |