Methods

__construct()

__construct(\Reflector | string $commentOrReflector, \Zend\Code\Reflection\DocBlock\TagManager $tagManager) : \Zend\Code\Reflection\DocBlockReflection

Serialize to string

__toString() : string

Required by the Reflector interface

Returns

string

Export reflection

export() : void

Required by the Reflector interface.

todo What should this do?

Retrieve contents of DocBlock

getContents() : string

Returns

string

Get last line (position) of DocBlock

getEndLine() : int

Returns

int

Get DocBlock long description

getLongDescription() : string

Returns

string

Get DocBlock short description

getShortDescription() : string

Returns

string

Get start line (position) of DocBlock

getStartLine() : int

Returns

int

Retrieve the given DocBlock tag

getTag(string $name) : \Zend\Code\Reflection\DocBlock\Tag\TagInterface | false

Parameters

$name

string

Returns

Get all DocBlock annotation tags

getTags(string $filter) : \Zend\Code\Reflection\DocBlock\Tag\TagInterface[]

Parameters

$filter

string

Returns

Does the DocBlock contain the given annotation tag?

hasTag(string $name) : bool

Parameters

$name

string

Returns

bool

toString()

toString() : string

Returns

string

Parse the DocBlock

reflect() : void

 Properties

 

$cleanDocComment

$cleanDocComment : string

 

$docComment

$docComment : string

 

$endLine

$endLine 

 

$isReflected

$isReflected : bool

 

$longDescription

$longDescription : string

 

$reflector

$reflector : \Reflector

 

$shortDescription

$shortDescription : string

 

$startLine

$startLine 

 

$tagManager

$tagManager : \Zend\Code\Reflection\DocBlock\TagManager

 

$tags

$tags : array