/** * Deletes both from card info and from cards * * @param $cardID string */ public function deleteCard($cardID) { $card_info_repo = new CardInfoRepository(); $payment_repo = new PaymentRepository(); $card_info_repo->removeByID($cardID); $payment_repo->removeCardID($cardID); $this->removeByID($cardID); }