Documentation

DocBlockGenerator extends AbstractGenerator
in package

Table of Contents

Constants

LINE_FEED  = "\n"
Line feed to use in place of EOL

Properties

$indentation  : string
$isSourceDirty  : bool
$longDescription  : string
$shortDescription  : string
$sourceContent  : string|null
TODO: Type should be changed to "string" in the next major version. Nullable for BC
$tagManager  : TagManager|null
$tags  : array<string|int, mixed>
$wordwrap  : bool

Methods

__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|null
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

Properties

$sourceContent

TODO: Type should be changed to "string" in the next major version. Nullable for BC

protected string|null $sourceContent = null

Methods

__construct()

public __construct([string|null $shortDescription = null ][, string|null $longDescription = null ][, array<string|int, array<string|int, mixed>>|array<string|int, TagInterface$tags = [] ]) : mixed
Parameters
$shortDescription : string|null = null
$longDescription : string|null = null
$tags : array<string|int, array<string|int, mixed>>|array<string|int, TagInterface> = []

fromArray()

Generate from array

public static fromArray(array<string|int, mixed> $array) : DocBlockGenerator
Parameters
$array : array<string|int, mixed>
Tags
configkey

shortdescription string The short description for this doc block

configkey

longdescription string The long description for this doc block

configkey

tags array

throws
InvalidArgumentException
Return values
DocBlockGenerator

getLongDescription()

public getLongDescription() : string
Return values
string

getShortDescription()

public getShortDescription() : string
Return values
string

getSourceContent()

public getSourceContent() : string|null
Return values
string|null

docCommentize()

protected docCommentize(string $content) : string
Parameters
$content : string
Return values
string

        
On this page

Search results