Phalcon\Db\Adapter\MongoDB\DeleteResult::getDeletedCount PHP Method

getDeletedCount() public method

This method should only be called if the write was acknowledged.
See also: DeleteResult::isAcknowledged()
public getDeletedCount ( ) : integer
return integer
    public function getDeletedCount()
    {
        if ($this->isAcknowledged) {
            return $this->writeResult->getDeletedCount();
        }
        throw BadMethodCallException::unacknowledgedWriteResultAccess(__METHOD__);
    }