src/Compiler/Aliased.php
public static function render(SQL\Aliased $aliased)
    {
        $content = $aliased->getContent();

        if ($content instanceof Query\Select) {
            $content = "(".Select::render($content).")";
        } else {
            $content = Compiler::name($content);
        }

        return Compiler::expression(array(
            $content,
            Compiler::word('AS', Compiler::name($aliased->getAlias()))
        ));
    }
public static function render(SQL\Aliased $aliased)
    {
        $content = $aliased->getContent();

        if ($content instanceof Query\Select) {
            $content = "(".Select::render($content).")";
        } else {
            $content = Compiler::name($content);
        }

        return Compiler::expression(array(
            $content,
            Compiler::word('AS', Compiler::name($aliased->getAlias()))
        ));
    }
public static function render ( SQL \ Aliased $ aliased ) { $ content = $ aliased -> getContent ( ) ; if ( $ content instanceof Query \ Select ) { $ content = "(" . Select :: render ( $ content ) . ")" ; } else { $ content = Compiler :: name ( $ content ) ; } return Compiler :: expression ( array ( $ content , Compiler :: word ( 'AS' , Compiler :: name ( $ aliased -> getAlias ( ) ) ) ) ) ; }
Render SQL for Aliased

@param  SQL\Aliased $aliased
@return string
Render SQL for Aliased