1 | <?php |
||
21 | class AcceptFormatSupportable implements ResourceSerializerSupportableInterface |
||
22 | { |
||
23 | /** |
||
24 | * @var array |
||
25 | */ |
||
26 | private $acceptedMediaTypes; |
||
27 | |||
28 | /** |
||
29 | * @var array |
||
30 | */ |
||
31 | private $supportClasses; |
||
32 | |||
33 | /** |
||
34 | * @var array |
||
35 | */ |
||
36 | private $notSupportedClasses; |
||
37 | |||
38 | /** |
||
39 | * Constructor. |
||
40 | * |
||
41 | * @param array $acceptedMediaTypes |
||
42 | * @param array $supportClasses |
||
43 | * @param array $notSupportedClasses |
||
44 | */ |
||
45 | 4 | public function __construct(array $acceptedMediaTypes, array $supportClasses = [], array $notSupportedClasses = []) |
|
51 | |||
52 | /** |
||
53 | * {@inheritdoc} |
||
54 | */ |
||
55 | 4 | public function supports(string $resourceClass, string $mediaType): bool |
|
79 | } |
||
80 |