PHP Class Phalcon\Db\Adapter\MongoDB\DeleteResult

Mostrar archivo Open project: phalcon/incubator

Public Methods

Method Description
__construct ( MongoDB\Driver\WriteResult $writeResult ) Constructor.
getDeletedCount ( ) : integer Return the number of documents that were deleted.
isAcknowledged ( ) : boolean Return whether this delete was acknowledged by the server.

Method Details

__construct() public method

Constructor.
public __construct ( MongoDB\Driver\WriteResult $writeResult )
$writeResult MongoDB\Driver\WriteResult

getDeletedCount() public method

This method should only be called if the write was acknowledged.
See also: DeleteResult::isAcknowledged()
public getDeletedCount ( ) : integer
return integer

isAcknowledged() public method

If the delete was not acknowledged, other fields from the WriteResult (e.g. deletedCount) will be undefined.
public isAcknowledged ( ) : boolean
return boolean