| Total Complexity | 3 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | trait HasGroupRemovingConfirmation |
||
| 8 | { |
||
| 9 | |||
| 10 | /** |
||
| 11 | * Display confirmation modal before removing group. |
||
| 12 | */ |
||
| 13 | public function withGroupRemovingConfirmation(?string $modalMessage = null, ?string $yesButtonText = null, ?string $noButtonText = null): static |
||
| 20 | ]); |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Do not display confirmation modal before removing group. |
||
| 25 | */ |
||
| 26 | public function withoutGroupRemovingConfirmation(): static |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @deprecated |
||
| 40 | */ |
||
| 41 | public function confirmRemove(?string $label = null, ?string $yes = null, ?string $no = null): static |
||
| 47 |