AbstractGenerator
in package
implements
GeneratorInterface
AbstractYes
Abstract generator class
Tags
Table of Contents
Interfaces
- GeneratorInterface
- Generator interface
Properties
Methods
- getIndent() : int
- Get the indent
- getOutput() : string
- Get the output
- hasIndent() : bool
- Has indent
- hasOutput() : bool
- Has output
- isRendered() : bool
- Is rendered (alias to hasOutput())
- printIndent() : string
- Print the indent
- render() : string
- Render method
- setIndent() : AbstractGenerator
- Set the indent
Properties
$indent
Code indent spaces
protected
int
$indent
= 4
$output
Output string
protected
string|null
$output
= null
Methods
getIndent()
Get the indent
public
getIndent() : int
Return values
intgetOutput()
Get the output
public
getOutput() : string
Return values
stringhasIndent()
Has indent
public
hasIndent() : bool
Return values
boolhasOutput()
Has output
public
hasOutput() : bool
Return values
boolisRendered()
Is rendered (alias to hasOutput())
public
isRendered() : bool
Return values
boolprintIndent()
Print the indent
public
printIndent() : string
Return values
stringrender()
Render method
public
abstract render() : string
Return values
stringsetIndent()
Set the indent
public
setIndent(int $indent) : AbstractGenerator
Parameters
- $indent : int