GenericTag
extends AbstractGenerator
in package
implements
TagInterface, PrototypeGenericInterface
Interfaces, Classes, Traits and Enums
Table of Contents
- LINE_FEED = "\n"
- Line feed to use in place of EOL
- $content : string
- $indentation : int|string
- $isSourceDirty : bool
- $name : string
- $sourceContent : string
- __construct() : mixed
- generate() : string
- getContent() : string
- getIndentation() : string
- getName() : string
- getSourceContent() : string
- isSourceDirty() : bool
- setContent() : GenericTag
- setIndentation() : AbstractGenerator
- setName() : GenericTag
- setOptions() : AbstractGenerator
- setSourceContent() : AbstractGenerator
- setSourceDirty() : AbstractGenerator
Constants
LINE_FEED
Line feed to use in place of EOL
public
mixed
LINE_FEED
= "\n"
Properties
$content
protected
string
$content
$indentation
protected
int|string
$indentation
= ' '
4 spaces by default
$isSourceDirty
protected
bool
$isSourceDirty
= true
$name
protected
string
$name
$sourceContent
protected
string
$sourceContent
Methods
__construct()
public
__construct([string $name = null ][, string $content = null ]) : mixed
Parameters
- $name : string = null
- $content : string = null
Return values
mixed —generate()
public
generate() : string
Return values
string —getContent()
public
getContent() : string
Return values
string —getIndentation()
public
getIndentation() : string
Return values
string —getName()
public
getName() : string
Return values
string —getSourceContent()
public
getSourceContent() : string
Return values
string —isSourceDirty()
public
isSourceDirty() : bool
Return values
bool —setContent()
public
setContent(string $content) : GenericTag
Parameters
- $content : string
Return values
GenericTag —setIndentation()
public
setIndentation(string $indentation) : AbstractGenerator
Parameters
- $indentation : string
Return values
AbstractGenerator —setName()
public
setName(string $name) : GenericTag
Parameters
- $name : string
Return values
GenericTag —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