Documentation

DocBlockReflection
in package
implements ReflectionInterface

Table of Contents

Interfaces

ReflectionInterface

Properties

$cleanDocComment  : string
$docComment  : string
$endLine  : int
$isReflected  : bool
$longDescription  : string
$reflector  : Reflector
$shortDescription  : string
$startLine  : int
$tagManager  : TagManager
$tags  : array<string|int, mixed>

Methods

__construct()  : mixed
__toString()  : string
Serialize to string
export()  : void
Export reflection
getContents()  : string
Retrieve contents of DocBlock
getEndLine()  : int
Get last line (position) of DocBlock
getLongDescription()  : string
Get DocBlock long description
getShortDescription()  : string
Get DocBlock short description
getStartLine()  : int
Get start line (position) of DocBlock
getTag()  : TagInterface|false
Retrieve the given DocBlock tag
getTags()  : array<string|int, TagInterface>
Get all DocBlock annotation tags
hasTag()  : bool
Does the DocBlock contain the given annotation tag?
toString()  : string
reflect()  : void
Parse the DocBlock

Properties

Methods

__toString()

Serialize to string

public __toString() : string

Required by the Reflector interface

Return values
string

export()

Export reflection

public static export() : void

Required by the Reflector interface.

Tags
todo

What should this do?

getContents()

Retrieve contents of DocBlock

public getContents() : string
Return values
string

getEndLine()

Get last line (position) of DocBlock

public getEndLine() : int
Return values
int

getLongDescription()

Get DocBlock long description

public getLongDescription() : string
Return values
string

getShortDescription()

Get DocBlock short description

public getShortDescription() : string
Return values
string

getStartLine()

Get start line (position) of DocBlock

public getStartLine() : int
Return values
int

getTags()

Get all DocBlock annotation tags

public getTags([string $filter = null ]) : array<string|int, TagInterface>
Parameters
$filter : string = null
Return values
array<string|int, TagInterface>

hasTag()

Does the DocBlock contain the given annotation tag?

public hasTag(string $name) : bool
Parameters
$name : string
Return values
bool

        
On this page

Search results