formatList() публичный Метод

Formats the given list of tokens.
public formatList ( TokensList $list ) : string
$list SqlParser\TokensList The list of tokens.
Результат string
Пример #1
0
 /**
  * Formats a query.
  *
  * @param string $query   The query to be formatted
  * @param array  $options The formatting options.
  *
  * @return string          The formatted string.
  */
 public static function format($query, array $options = array())
 {
     $lexer = new Lexer($query);
     $formatter = new Formatter($options);
     return $formatter->formatList($lexer->list);
 }