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