| Total Complexity | 5 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class Submit extends Button |
||
| 12 | { |
||
| 13 | protected string $templateInput = '<input type="submit" value="%1$s"%2$s />'; |
||
| 14 | protected $originalValue = 'submit'; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Check if form was sent by this button |
||
| 18 | * @var boolean |
||
| 19 | */ |
||
| 20 | protected bool $submitted = false; |
||
| 21 | |||
| 22 | 2 | public function setValue($value): void |
|
| 23 | { |
||
| 24 | 2 | $this->submitted = !empty($value); |
|
| 25 | 2 | } |
|
| 26 | |||
| 27 | 2 | public function getValue() |
|
| 30 | } |
||
| 31 | |||
| 32 | 1 | public function setTitle(string $title): void |
|
| 35 | 1 | } |
|
| 36 | |||
| 37 | 2 | public function renderInput($attributes = null): string |
|
| 44 |