Phalcon\Db\Adapter\MongoDB\InsertOneResult::getInsertedCount PHP Méthode

getInsertedCount() public méthode

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