Phalcon\Db\Adapter\MongoDB\InsertManyResult::getInsertedCount PHP Method

getInsertedCount() public method

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