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.
파일 보기
프로젝트 열기: Webiny/Framework
1 사용 예제들
보호된 프로퍼티들
공개 메소드들
메소드 |
설명 |
|
__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. |
|
메소드 상세
public __construct ( array $paramList, ConfigObject $paramAnnotations ) |
$paramList |
array |
|
$paramAnnotations |
Webiny\Component\Config\ConfigObject |
|
Parses all the parameters and return an array of ParsedParameter instances.
프로퍼티 상세
$paramTypes 보호되어 있는 정적으로 프로퍼티
List of default parameter type.
protected static $paramTypes |