Documentation

DocblockTag
in package

Docblock tag class

Table of Contents

Properties

$name  : string
$value  : string|null

Methods

fromContent()  : DocblockTag|null
Parses and returns new tag object from raw line
fromLine()  : DocblockTag|null
Returns new tag object from line
getName()  : string
Returns name of tag
getValue()  : string|null
Returns value of tag or null if not present
__construct()  : mixed

Properties

Methods

fromContent()

Parses and returns new tag object from raw line

public static fromContent(string $content) : DocblockTag|null
Parameters
$content : string
Return values
DocblockTag|null

getName()

Returns name of tag

public getName() : string
Return values
string

getValue()

Returns value of tag or null if not present

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

__construct()

private __construct(string $name, string|null $value) : mixed
Parameters
$name : string
$value : string|null

        
On this page

Search results