original_string: private function getMode($tokens)
      {
          switch ($tokens->getQueryMode()) {
              case 'find':
                  return QueryBuilderResult::RESULT_SELECT_MULTIPLE;
              case 'get':
                  return QueryBuilderResult::RESULT_SELECT_SINGLE;
              case 'delete':
                  return QueryBuilderResult::RESULT_DELETE;
          }
  
          throw new DslSyntaxException('No query could be built for ' . $tokens->getMethodName() . ': Unknown query mode [' . $tokens->getQueryMode() . ']', DATADO_ILLEGAL_RESULT_MODE);
      }
code: private function getMode($tokens)
      {
          switch ($tokens->getQueryMode()) {
              case 'find':
                  return QueryBuilderResult::RESULT_SELECT_MULTIPLE;
              case 'get':
                  return QueryBuilderResult::RESULT_SELECT_SINGLE;
              case 'delete':
                  return QueryBuilderResult::RESULT_DELETE;
          }
  
          throw new DslSyntaxException('No query could be built for ' . $tokens->getMethodName() . ': Unknown query mode [' . $tokens->getQueryMode() . ']', DATADO_ILLEGAL_RESULT_MODE);
      }
code_tokens: private function getMode ( $ tokens ) { switch ( $ tokens -> getQueryMode ( ) ) { case 'find' : return QueryBuilderResult :: RESULT_SELECT_MULTIPLE ; case 'get' : return QueryBuilderResult :: RESULT_SELECT_SINGLE ; case 'delete' : return QueryBuilderResult :: RESULT_DELETE ; } throw new DslSyntaxException ( 'No query could be built for ' . $ tokens -> getMethodName ( ) . ': Unknown query mode [' . $ tokens -> getQueryMode ( ) . ']' , DATADO_ILLEGAL_RESULT_MODE ) ; }
docstring: Get the result type for a MethodNameToken.
  
  @param MethodNameToken $tokens
  @return int The result type
  @throws DslSyntaxException if no supported mode was found
docstring_tokens: Get the result type for a MethodNameToken .