original_string: private function addMethod($method)
      {
          $tokens = $this->methodParser->parse($method);
          $query = $this->queryBuilder->build($tokens, $this->tableName, $this->namingContention, $this->entityClass);
          if ($query->getResultMode() <= QueryBuilderResult::RESULT_SELECT_MULTIPLE) {
              $this->addSelectionMethod($query, $method);
          } else {
              $this->addIntResultMethod($query, $method);
          }
  
      }
code: private function addMethod($method)
      {
          $tokens = $this->methodParser->parse($method);
          $query = $this->queryBuilder->build($tokens, $this->tableName, $this->namingContention, $this->entityClass);
          if ($query->getResultMode() <= QueryBuilderResult::RESULT_SELECT_MULTIPLE) {
              $this->addSelectionMethod($query, $method);
          } else {
              $this->addIntResultMethod($query, $method);
          }
  
      }
code_tokens: private function addMethod ( $ method ) { $ tokens = $ this -> methodParser -> parse ( $ method ) ; $ query = $ this -> queryBuilder -> build ( $ tokens , $ this -> tableName , $ this -> namingContention , $ this -> entityClass ) ; if ( $ query -> getResultMode ( ) <= QueryBuilderResult :: RESULT_SELECT_MULTIPLE ) { $ this -> addSelectionMethod ( $ query , $ method ) ; } else { $ this -> addIntResultMethod ( $ query , $ method ) ; } }
docstring: Parse a dsl method and add it to this repository.
  @param $method string the method name
  @throws DslSyntaxException
docstring_tokens: Parse a dsl method and add it to this repository .