1 | <?php |
||
13 | class BodyContentType implements RestAnnotationInterface |
||
14 | { |
||
15 | /** |
||
16 | * @var array |
||
17 | */ |
||
18 | private $supportedContentTypes; |
||
19 | |||
20 | /** |
||
21 | * @var bool |
||
22 | */ |
||
23 | private $jsonEncodedBody; |
||
24 | |||
25 | 96 | public function __construct(array $options) |
|
30 | |||
31 | /** |
||
32 | * @param array $supportedContentTypes |
||
33 | * @return $this |
||
34 | */ |
||
35 | 96 | private function setSupportedContentTypes(array $supportedContentTypes): self |
|
40 | |||
41 | /** |
||
42 | * @param bool $jsonEncodedBody |
||
43 | * @return $this |
||
44 | */ |
||
45 | 96 | private function setJsonEncodedBody(bool $jsonEncodedBody): self |
|
50 | |||
51 | 96 | public function isSeveralSupported(): bool |
|
55 | |||
56 | 96 | public function apply(RestRequestOptions $options, ReflectionMethodWrapper $reflectionMethod) |
|
60 | } |
||
61 |