AbstractGenerator
in package
implements
GeneratorInterface
Interfaces, Classes, Traits and Enums
Table of Contents
- LINE_FEED = "\n"
- Line feed to use in place of EOL
- $indentation : int|string
- $isSourceDirty : bool
- $sourceContent : string
- __construct() : mixed
- getIndentation() : string
- getSourceContent() : string
- isSourceDirty() : bool
- setIndentation() : AbstractGenerator
- setOptions() : AbstractGenerator
- setSourceContent() : AbstractGenerator
- setSourceDirty() : AbstractGenerator
Constants
LINE_FEED
Line feed to use in place of EOL
public
mixed
LINE_FEED
= "\n"
Properties
$indentation
protected
int|string
$indentation
= ' '
4 spaces by default
$isSourceDirty
protected
bool
$isSourceDirty
= true
$sourceContent
protected
string
$sourceContent
Methods
__construct()
public
__construct([array<string|int, mixed> $options = [] ]) : mixed
Parameters
- $options : array<string|int, mixed> = []
Return values
mixed —getIndentation()
public
getIndentation() : string
Return values
string —getSourceContent()
public
getSourceContent() : string
Return values
string —isSourceDirty()
public
isSourceDirty() : bool
Return values
bool —setIndentation()
public
setIndentation(string $indentation) : AbstractGenerator
Parameters
- $indentation : string
Return values
AbstractGenerator —setOptions()
public
setOptions(array<string|int, mixed>|Traversable $options) : AbstractGenerator
Parameters
- $options : array<string|int, mixed>|Traversable
Tags
Return values
AbstractGenerator —setSourceContent()
public
setSourceContent(string $sourceContent) : AbstractGenerator
Parameters
- $sourceContent : string
Return values
AbstractGenerator —setSourceDirty()
public
setSourceDirty([bool $isSourceDirty = true ]) : AbstractGenerator
Parameters
- $isSourceDirty : bool = true