| Total Complexity | 4 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class DeleteContactForm extends Component |
||
| 9 | { |
||
| 10 | public Contact $contact; |
||
| 11 | |||
| 12 | public function mount($contact) |
||
| 13 | { |
||
| 14 | $this->contact = $contact; |
||
| 15 | } |
||
| 16 | |||
| 17 | public function confirmContactDeletion() |
||
| 18 | { |
||
| 19 | $this->resetErrorBag(); |
||
| 20 | |||
| 21 | $this->password = ''; |
||
|
|
|||
| 22 | |||
| 23 | $this->dispatchBrowserEvent('confirming-delete-contact'); |
||
| 24 | |||
| 25 | $this->confirmingContactDeletion = true; |
||
| 26 | } |
||
| 27 | |||
| 28 | public function deleteContact(string $id) |
||
| 37 | } |
||
| 38 | |||
| 39 | public function render() |
||
| 42 | } |
||
| 43 | } |
||
| 44 |