1 | <?php |
||
5 | class RendererCollection |
||
6 | { |
||
7 | /** |
||
8 | * @var DiceRenderer[] |
||
9 | */ |
||
10 | private $renderers; |
||
11 | |||
12 | /** |
||
13 | * RendererCollection constructor. |
||
14 | * @param DiceRenderer[] $renderers |
||
15 | */ |
||
16 | public function __construct(array $renderers) |
||
22 | |||
23 | /** |
||
24 | * @param string $acceptTypes |
||
25 | * @return DiceRenderer |
||
26 | * @throws UnknownRendererException |
||
27 | */ |
||
28 | public function newForAcceptType($acceptTypes) |
||
37 | |||
38 | /** |
||
39 | * Returns key value pairs mapping a url prefix to a handled content type |
||
40 | * so ["json" => "application/json", "etc" => "..."] |
||
41 | * @return string[] |
||
42 | */ |
||
43 | public function contentTypesForPaths() : array |
||
51 | } |
||
52 |