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

getInsertedCount() public method

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