DocblockTag
in package
Docblock tag class
Table of Contents
Properties
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
$name read-only
private
string
$name
$value read-only
private
string|null
$value
Methods
fromContent()
Parses and returns new tag object from raw line
public
static fromContent(string $content) : DocblockTag|null
Parameters
- $content : string
Return values
DocblockTag|nullfromLine()
Returns new tag object from line
public
static fromLine(DocblockLine $line) : DocblockTag|null
Parameters
- $line : DocblockLine
Return values
DocblockTag|nullgetName()
Returns name of tag
public
getName() : string
Return values
stringgetValue()
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