public function delete(Contact $contact): void
    {
        $id = $contact->getId();

        $contact->setId(null);

        $this->client->delete($this->prepareUrlForKey('delete-contact', ['id' => $id]));
    }
public function delete(Contact $contact): void
    {
        $id = $contact->getId();

        $contact->setId(null);

        $this->client->delete($this->prepareUrlForKey('delete-contact', ['id' => $id]));
    }
public function delete ( Contact $ contact ) : void { $ id = $ contact -> getId ( ) ; $ contact -> setId ( null ) ; $ this -> client -> delete ( $ this -> prepareUrlForKey ( 'delete-contact' , [ 'id' => $ id ] ) ) ; }
Deletes the given contact.

@param Contact $contact The contact to delete
Deletes the given contact .