| 1 | <?php |
||
| 7 | class ContentTypeMatcher |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var Negotiator |
||
| 11 | */ |
||
| 12 | private $negotiator; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param Negotiator|null $negotiator |
||
| 16 | */ |
||
| 17 | 42 | public function __construct(Negotiator $negotiator = null) |
|
| 21 | |||
| 22 | /** |
||
| 23 | * @param string $acceptHeader |
||
| 24 | * @param string[] $acceptedContentTypes |
||
| 25 | * @return bool |
||
| 26 | */ |
||
| 27 | 40 | public function matches($acceptHeader, array $acceptedContentTypes) |
|
| 46 | } |
||
| 47 |