DocBlockGenerator
extends AbstractGenerator
in package
Table of Contents
- LINE_FEED = "\n"
- Line feed to use in place of EOL
- $indentation : string
- $isSourceDirty : bool
- $longDescription : string
- $shortDescription : string
- $sourceContent : string
- $tagManager : TagManager
- $tags : array<string|int, mixed>
- $wordwrap : bool
- __construct() : mixed
- fromArray() : DocBlockGenerator
- Generate from array
- fromReflection() : DocBlockGenerator
- Build a DocBlock generator object from a reflection object
- generate() : string
- getIndentation() : string
- getLongDescription() : string
- getShortDescription() : string
- getSourceContent() : string
- getTags() : array<string|int, TagInterface>
- getWordWrap() : bool
- isSourceDirty() : bool
- setIndentation() : AbstractGenerator
- setLongDescription() : DocBlockGenerator
- setOptions() : AbstractGenerator
- setShortDescription() : DocBlockGenerator
- setSourceContent() : AbstractGenerator
- setSourceDirty() : AbstractGenerator
- setTag() : DocBlockGenerator
- setTags() : DocBlockGenerator
- setWordWrap() : DocBlockGenerator
- docCommentize() : string
- getTagManager() : TagManager
Constants
LINE_FEED
Line feed to use in place of EOL
public
mixed
LINE_FEED
= "\n"
Properties
$indentation
protected
string
$indentation
= ''
$isSourceDirty
protected
bool
$isSourceDirty
= true
$longDescription
protected
string
$longDescription
$shortDescription
protected
string
$shortDescription
$sourceContent
protected
string
$sourceContent
$tagManager
protected
static TagManager
$tagManager
$tags
protected
array<string|int, mixed>
$tags
= []
$wordwrap
protected
bool
$wordwrap
= true
Methods
__construct()
public
__construct([string $shortDescription = null ][, string $longDescription = null ][, array<string|int, mixed> $tags = [] ]) : mixed
Parameters
- $shortDescription : string = null
- $longDescription : string = null
- $tags : array<string|int, mixed> = []
Return values
mixed —fromArray()
Generate from array
public
static fromArray(array<string|int, mixed> $array) : DocBlockGenerator
Parameters
- $array : array<string|int, mixed>
Tags
Return values
DocBlockGenerator —fromReflection()
Build a DocBlock generator object from a reflection object
public
static fromReflection(DocBlockReflection $reflectionDocBlock) : DocBlockGenerator
Parameters
- $reflectionDocBlock : DocBlockReflection
Return values
DocBlockGenerator —generate()
public
generate() : string
Return values
string —getIndentation()
public
getIndentation() : string
Return values
string —getLongDescription()
public
getLongDescription() : string
Return values
string —getShortDescription()
public
getShortDescription() : string
Return values
string —getSourceContent()
public
getSourceContent() : string
Return values
string —getTags()
public
getTags() : array<string|int, TagInterface>
Return values
array<string|int, TagInterface> —getWordWrap()
public
getWordWrap() : bool
Return values
bool —isSourceDirty()
public
isSourceDirty() : bool
Return values
bool —setIndentation()
public
setIndentation(string $indentation) : AbstractGenerator
Parameters
- $indentation : string
Return values
AbstractGenerator —setLongDescription()
public
setLongDescription(string $longDescription) : DocBlockGenerator
Parameters
- $longDescription : string
Return values
DocBlockGenerator —setOptions()
public
setOptions(array<string|int, mixed>|Traversable $options) : AbstractGenerator
Parameters
- $options : array<string|int, mixed>|Traversable
Tags
Return values
AbstractGenerator —setShortDescription()
public
setShortDescription(string $shortDescription) : DocBlockGenerator
Parameters
- $shortDescription : string
Return values
DocBlockGenerator —setSourceContent()
public
setSourceContent(string $sourceContent) : AbstractGenerator
Parameters
- $sourceContent : string
Return values
AbstractGenerator —setSourceDirty()
public
setSourceDirty([bool $isSourceDirty = true ]) : AbstractGenerator
Parameters
- $isSourceDirty : bool = true
Return values
AbstractGenerator —setTag()
public
setTag(array<string|int, mixed>|TagInterface $tag) : DocBlockGenerator
Parameters
- $tag : array<string|int, mixed>|TagInterface
Tags
Return values
DocBlockGenerator —setTags()
public
setTags(array<string|int, mixed> $tags) : DocBlockGenerator
Parameters
- $tags : array<string|int, mixed>
Return values
DocBlockGenerator —setWordWrap()
public
setWordWrap(bool $value) : DocBlockGenerator
Parameters
- $value : bool
Return values
DocBlockGenerator —docCommentize()
protected
docCommentize(string $content) : string
Parameters
- $content : string
Return values
string —getTagManager()
protected
static getTagManager() : TagManager