Tag
extends GenericTag
in package
Tags
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
- fromReflection() : Tag
- generate() : string
- getContent() : string
- getDescription() : string
- getIndentation() : string
- getName() : string
- getSourceContent() : string
- isSourceDirty() : bool
- setContent() : GenericTag
- setDescription() : Tag
- 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([array<string|int, mixed> $options = [] ]) : mixed
Parameters
- $options : array<string|int, mixed> = []
Return values
mixed —fromReflection()
public
static fromReflection(TagInterface $reflectionTag) : Tag
Parameters
- $reflectionTag : TagInterface
Tags
Return values
Tag —generate()
public
generate() : string
Return values
string —getContent()
public
getContent() : string
Return values
string —getDescription()
public
getDescription() : string
Tags
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 —setDescription()
public
setDescription(string $description) : Tag
Parameters
- $description : string
Tags
Return values
Tag —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