PHP Class lithium\analysis\Docblock
This parser may be used as the basis for a variety of secondary tools, including
a reflection-based API generator, a code metrics analyzer, and various other possible
use cases.
显示文件
Open project: unionofrad/lithium
Class Usage Examples
Public Properties
Property |
Type |
Description |
|
$tags |
array |
List of supported docblock tags. |
|
Public Methods
Method |
Description |
|
comment ( string $comment ) : array |
Parses a doc block into its major components of description, text and tags. |
|
tags ( string $string ) : array |
Parses @ docblock tags and their descriptions from a docblock. |
|
Protected Methods
Method |
Description |
|
_params ( array $params ) : array |
Parses @param docblock tags to separate out the parameter type from the description. |
|
Method Details
_params()
protected static method
Parses @param docblock tags to separate out the parameter type from the description.
protected static _params ( array $params ) : array |
$params |
array |
An array of `@param` tags, as parsed from the `tags()` method. |
return |
array |
Returns an array where each key is a parameter name, and each value is an
associative array containing `'type'` and `'text'` keys. |
Property Details