public function deleteCard($addressBookId, $cardUri)
    {
        $stmt = $this->pdo->prepare('DELETE FROM '.$this->cardsTableName.' WHERE addressbookid = ? AND uri = ?');
        $stmt->execute([$addressBookId, $cardUri]);

        $this->addChange($addressBookId, $cardUri, 3);

        return 1 === $stmt->rowCount();
    }
public function deleteCard($addressBookId, $cardUri)
    {
        $stmt = $this->pdo->prepare('DELETE FROM '.$this->cardsTableName.' WHERE addressbookid = ? AND uri = ?');
        $stmt->execute([$addressBookId, $cardUri]);

        $this->addChange($addressBookId, $cardUri, 3);

        return 1 === $stmt->rowCount();
    }
public function deleteCard ( $ addressBookId , $ cardUri ) { $ stmt = $ this -> pdo -> prepare ( 'DELETE FROM ' . $ this -> cardsTableName . ' WHERE addressbookid = ? AND uri = ?' ) ; $ stmt -> execute ( [ $ addressBookId , $ cardUri ] ) ; $ this -> addChange ( $ addressBookId , $ cardUri , 3 ) ; return 1 === $ stmt -> rowCount ( ) ; }
Deletes a card.

@param mixed  $addressBookId
@param string $cardUri

@return bool
Deletes a card .