src/main/php/DataDo/Data/Query/DefaultQueryBuilder.php
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);
    }
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);
    }
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 ) ; }
Get the result type for a MethodNameToken.

@param MethodNameToken $tokens
@return int The result type
@throws DslSyntaxException if no supported mode was found
Get the result type for a MethodNameToken .