Phalcon\Db\Adapter\MongoDB\BulkWriteResult::getMatchedCount PHP Method

getMatchedCount() public method

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