From b8377b016d24debb2b569fb7ddc3373832047532 Mon Sep 17 00:00:00 2001 From: Medizen Date: Wed, 11 Oct 2023 00:51:56 +0200 Subject: [PATCH] Add feature from issue #89 to v4.4 branch for PHP8 release --- Classes/Domain/Repository/ContactRepository.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Classes/Domain/Repository/ContactRepository.php b/Classes/Domain/Repository/ContactRepository.php index 31eba76..97d9882 100644 --- a/Classes/Domain/Repository/ContactRepository.php +++ b/Classes/Domain/Repository/ContactRepository.php @@ -49,6 +49,11 @@ public function editContact(int $id, array $data): array return $this->contactsApi->edit($id, $data, false); } + public function deleteContact(int $id): array + { + return $this->contactsApi->delete($id); + } + public function getContact(int $id): array { $contact = $this->contactsApi->get($id);