original_string: public function getNextValue(string $sequenceName): int
      {
          $sequenceValue = $this->rawCollection()->findOneAndUpdate(
              ['_id' => $sequenceName],
              ['$inc' => ['seq' => 1]],
              ['upsert' => true]
          );
  
          if ($sequenceValue) {
              $_id = $sequenceValue->seq + 1;
          }
  
          return $_id ?? 1;
      }
code: public function getNextValue(string $sequenceName): int
      {
          $sequenceValue = $this->rawCollection()->findOneAndUpdate(
              ['_id' => $sequenceName],
              ['$inc' => ['seq' => 1]],
              ['upsert' => true]
          );
  
          if ($sequenceValue) {
              $_id = $sequenceValue->seq + 1;
          }
  
          return $_id ?? 1;
      }
code_tokens: public function getNextValue ( string $ sequenceName ) : int { $ sequenceValue = $ this -> rawCollection ( ) -> findOneAndUpdate ( [ '_id' => $ sequenceName ] , [ '$inc' => [ 'seq' => 1 ] ] , [ 'upsert' => true ] ) ; if ( $ sequenceValue ) { $ _id = $ sequenceValue -> seq + 1 ; } return $ _id ?? 1 ; }
docstring: Get next value for the sequence.
  
  @param string $sequenceName sequence identifier string
  
  @return int
docstring_tokens: Get next value for the sequence .