public function toSQL(Parameters $params, bool $inner_clause)
    {
        $drv = $params->getDriver();
        $table = $drv->toSQL($params, $this->getTable());
        $condition = $drv->toSQL($params, $this->getCondition());
        return $this->getType() . " JOIN " . $table . " ON " . $condition;
    }
public function toSQL(Parameters $params, bool $inner_clause)
    {
        $drv = $params->getDriver();
        $table = $drv->toSQL($params, $this->getTable());
        $condition = $drv->toSQL($params, $this->getCondition());
        return $this->getType() . " JOIN " . $table . " ON " . $condition;
    }
public function toSQL ( Parameters $ params , bool $ inner_clause ) { $ drv = $ params -> getDriver ( ) ; $ table = $ drv -> toSQL ( $ params , $ this -> getTable ( ) ) ; $ condition = $ drv -> toSQL ( $ params , $ this -> getCondition ( ) ) ; return $ this -> getType ( ) . " JOIN " . $ table . " ON " . $ condition ; }
Write a JOIN clause to SQL query syntax
@param Parameters $params The query parameters: tables and placeholder values
@param bool $inner_clause
@return string The generated SQL
Write a JOIN clause to SQL query syntax