1 | <?php |
||
12 | class AnnotationParserFactory |
||
13 | { |
||
14 | private $map = [ |
||
15 | ValidatorAnnotation::class => ValidatorAnnotationParser::class, |
||
16 | FilterAnnotation::class => FilterAnnotationParser::class, |
||
17 | ParseAs::class => ParseAsAnnotationParser::class, |
||
18 | ]; |
||
19 | |||
20 | /** |
||
21 | * @param RequestAnnotation $annotation |
||
22 | * @throws \Exception |
||
23 | * @return \Mcustiel\SimpleRequest\Strategies\Annotations\AnnotationParser |
||
24 | */ |
||
25 | public function getAnnotationParserFor(RequestAnnotation $annotation) |
||
34 | } |
||
35 |