| Conditions | 2 |
| Paths | 2 |
| Total Lines | 19 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | public function __construct( |
||
| 22 | string $name, |
||
| 23 | string $label = '', |
||
| 24 | string $type = 'text', |
||
| 25 | $bind = null, |
||
| 26 | $default = null, |
||
| 27 | $language = null, |
||
| 28 | bool $showErrors = true |
||
| 29 | ) { |
||
| 30 | $this->name = $name; |
||
| 31 | $this->label = $label; |
||
| 32 | $this->type = $type; |
||
| 33 | $this->showErrors = $showErrors; |
||
| 34 | |||
| 35 | if ($language) { |
||
| 36 | $this->name = "{$name}[{$language}]"; |
||
| 37 | } |
||
| 38 | |||
| 39 | $this->setValue($name, $bind, $default, $language); |
||
| 40 | } |
||
| 42 |