PHP Класс Webiny\Component\Rest\Parser\ParameterParser
Unlike MethodParser, which parses only a single method, the ParameterParser class parses all the parameters on a
single method.
Показать файл
Открыть проект
Примеры использования класса
Защищенные свойства (Protected)
Свойство |
Тип |
Описание |
|
$paramTypes |
|
List of default parameter type. |
|
Открытые методы
Метод |
Описание |
|
__construct ( array $paramList, ConfigObject $paramAnnotations ) |
Base constructor. |
|
parse ( ) : array |
Parses all the parameters and return an array of ParsedParameter instances. |
|
Приватные методы
Метод |
Описание |
|
getParamMatchType ( string $paramType ) : string |
Returns a different match pattern, based on the given $paramType. |
|
getType ( string $pName, ConfigObject $annotations ) : string |
Tries to detect the type of a parameter based on its phpDoc block. |
|
Описание методов
__construct()
публичный Метод
public __construct ( array $paramList, ConfigObject $paramAnnotations ) |
$paramList |
array |
|
$paramAnnotations |
Webiny\Component\Config\ConfigObject |
|
Parses all the parameters and return an array of ParsedParameter instances.
public parse ( ) : array |
Результат |
array |
Array of ParsedParameter instances. |
Описание свойств
$paramTypes защищенное статическое свойство
List of default parameter type.
protected static $paramTypes |