PHP Класс 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.
Показать файл
Открыть проект
Примеры использования класса
Открытые свойства
Свойство |
Тип |
Описание |
|
$tags |
array |
List of supported docblock tags. |
|
Открытые методы
Метод |
Описание |
|
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. |
|
Защищенные методы
Метод |
Описание |
|
_params ( array $params ) : array |
Parses @param docblock tags to separate out the parameter type from the description. |
|
Описание методов
_params()
защищенный статический Метод
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. |
Результат |
array |
Returns an array where each key is a parameter name, and each value is an
associative array containing `'type'` and `'text'` keys. |
Описание свойств