Phalcon\Db\Adapter\MongoDB\InsertOneResult::getInsertedCount PHP 메소드

getInsertedCount() 공개 메소드

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