PHP Class Webiny\Component\Rest\Parser\ParameterParser
Unlike MethodParser, which parses only a single method, the ParameterParser class parses all the parameters on a
single method.
Exibir arquivo
Open project: Webiny/Framework
Class Usage Examples
Protected Properties
Property |
Type |
Description |
|
$paramTypes |
|
List of default parameter type. |
|
Public Methods
Method |
Description |
|
__construct ( array $paramList, ConfigObject $paramAnnotations ) |
Base constructor. |
|
parse ( ) : array |
Parses all the parameters and return an array of ParsedParameter instances. |
|
Private Methods
Method |
Description |
|
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. |
|
Method Details
__construct()
public method
public __construct ( array $paramList, ConfigObject $paramAnnotations ) |
$paramList |
array |
|
$paramAnnotations |
Webiny\Component\Config\ConfigObject |
|
Parses all the parameters and return an array of ParsedParameter instances.
Property Details
$paramTypes protected_oe static_oe property
List of default parameter type.
protected static $paramTypes |