Doctrine\ORM\Query\Printer
A parse tree printer for Doctrine Query Language parser.
- Author: Janne Vanhala <jpvanhal@cc.hut.fi>
- License: http://www.opensource.org/licenses/lgpl-license.php LGPL
Synopsis
class Printer
{
- // methods
- public void __construct()
- public void startProduction()
- public void endProduction()
- public void println()
Members
protected
- $_indent
—
int
Current indentation level - $_silent
—
Doctrine\ORM\Query\bool
Defines whether parse tree is printed (default, false) or not (true).
Methods
public
- __construct() — Constructs a new parse tree printer.
- endProduction() — Decreases indentation level by one and prints a closing parenthesis.
- println() — Prints text indented with spaces depending on current indentation level.
- startProduction() — Prints an opening parenthesis followed by production name and increases indentation level by one.