src/Driver/Compiler.php
protected function prepareFragment(FragmentInterface $context): string
    {
        if ($context instanceof BuilderInterface) {
            //Nested queries has to be wrapped with braces
            return '(' . $context->sqlStatement($this) . ')';
        }

        if ($context instanceof ExpressionInterface) {
            //Fragments does not need braces around them
            return $context->sqlStatement($this);
        }

        return $context->sqlStatement();
    }
protected function prepareFragment(FragmentInterface $context): string
    {
        if ($context instanceof BuilderInterface) {
            //Nested queries has to be wrapped with braces
            return '(' . $context->sqlStatement($this) . ')';
        }

        if ($context instanceof ExpressionInterface) {
            //Fragments does not need braces around them
            return $context->sqlStatement($this);
        }

        return $context->sqlStatement();
    }
protected function prepareFragment ( FragmentInterface $ context ) : string { if ( $ context instanceof BuilderInterface ) { //Nested queries has to be wrapped with braces return '(' . $ context -> sqlStatement ( $ this ) . ')' ; } if ( $ context instanceof ExpressionInterface ) { //Fragments does not need braces around them return $ context -> sqlStatement ( $ this ) ; } return $ context -> sqlStatement ( ) ; }
Prepare where fragment to be injected into statement.

@param FragmentInterface $context

@return string
Prepare where fragment to be injected into statement .