| Total Complexity | 5 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 3 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 7 | class Submit extends FormElement |
||
| 8 | { |
||
| 9 | protected function attributesList() |
||
| 10 | { |
||
| 11 | return [ |
||
| 12 | 'class', 'disabled', |
||
| 13 | ]; |
||
| 14 | } |
||
| 15 | |||
| 16 | protected function setLabel() |
||
| 17 | { |
||
| 18 | parent::setLabel(); |
||
| 19 | |||
| 20 | if (is_null($this->label)) { |
||
|
|
|||
| 21 | $this->label = is_null($this->model) ? 'Create' : 'Edit'; |
||
| 22 | } |
||
| 23 | } |
||
| 24 | |||
| 25 | protected function setDefaultClass() |
||
| 29 | } |
||
| 30 | } |
||
| 31 |