1 | <?php |
||
24 | abstract class AbstractAdaptor implements AdaptorInterface |
||
25 | { |
||
26 | /** |
||
27 | * @var SerializerInterface |
||
28 | */ |
||
29 | public $serializer; |
||
30 | /** |
||
31 | * @var array |
||
32 | */ |
||
33 | protected $options = []; |
||
34 | |||
35 | /** |
||
36 | * Adaptor constructor. |
||
37 | * @param SerializerInterface $serializer |
||
38 | */ |
||
39 | 11 | public function __construct(SerializerInterface $serializer) |
|
43 | |||
44 | |||
45 | /** |
||
46 | * @inheritdoc |
||
47 | */ |
||
48 | 1 | public function getOptions() |
|
52 | |||
53 | /** |
||
54 | * @inheritdoc |
||
55 | */ |
||
56 | public function getOption($key) |
||
63 | |||
64 | /** |
||
65 | * @inheritdoc |
||
66 | */ |
||
67 | public function withOptions(array $options = []) |
||
68 | { |
||
69 | $this->options = $options; |
||
70 | } |
||
71 | |||
72 | /** |
||
73 | * @inheritdoc |
||
74 | */ |
||
75 | abstract public function match(RouteCollectionInterface $routes, $method, $requestTarget); |
||
76 | |||
77 | /** |
||
78 | * @inheritdoc |
||
79 | */ |
||
80 | abstract public function getCachedRoutes($context = ''); |
||
81 | |||
82 | /** |
||
83 | * @inheritdoc |
||
84 | */ |
||
85 | abstract public function isCached(); |
||
86 | } |
||
87 |