src/Controller.php
public static function generate(
        string $yasql,
        string $name = null,
        int $indent = null
    ) {
        $model = new Parser($yasql, $name);
        $view = new Generator($model, $indent);
        return $view->output();
    }
public static function generate(
        string $yasql,
        string $name = null,
        int $indent = null
    ) {
        $model = new Parser($yasql, $name);
        $view = new Generator($model, $indent);
        return $view->output();
    }
public static function generate ( string $ yasql , string $ name = null , int $ indent = null ) { $ model = new Parser ( $ yasql , $ name ) ; $ view = new Generator ( $ model , $ indent ) ; return $ view -> output ( ) ; }
Generates the SQL from a YASQL

@param string $yasql  A string following YAML Ain't SQL specifications
@param string $name   Overwrite database's name
@param int    $indent How many spaces per indentation level

@return string
Generates the SQL from a YASQL