AbstractGenerator
in package
implements
GeneratorInterface
Abstract generator class
Tags
Interfaces, Classes, Traits and Enums
- GeneratorInterface
- Generator interface
Table of Contents
- $indent : int
- Code indent spaces
- $output : string
- Output string
- 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
$output
= null
Methods
getIndent()
Get the indent
public
getIndent() : int
Return values
int —getOutput()
Get the output
public
getOutput() : string
Return values
string —hasIndent()
Has indent
public
hasIndent() : bool
Return values
bool —hasOutput()
Has output
public
hasOutput() : bool
Return values
bool —isRendered()
Is rendered (alias to hasOutput())
public
isRendered() : bool
Return values
bool —printIndent()
Print the indent
public
printIndent() : string
Return values
string —render()
Render method
public
abstract render() : string
Return values
string —setIndent()
Set the indent
public
setIndent(string $indent) : AbstractGenerator
Parameters
- $indent : string