1 | <?php |
||
22 | class JsonApiRegistry implements JsonApiRegistryInterface |
||
23 | { |
||
24 | /** |
||
25 | * Decoders map |
||
26 | * |
||
27 | * @var array |
||
28 | */ |
||
29 | protected $decoders = []; |
||
30 | |||
31 | /** |
||
32 | * Encoders map |
||
33 | * |
||
34 | * @var array |
||
35 | */ |
||
36 | protected $encoders = []; |
||
37 | |||
38 | /** |
||
39 | * @inheritdoc |
||
40 | */ |
||
41 | 1 | public function registerDecoder($name, \Closure $decoder) |
|
47 | |||
48 | /** |
||
49 | * @inheritdoc |
||
50 | */ |
||
51 | 2 | public function getDecoder($name) |
|
59 | |||
60 | /** |
||
61 | * @inheritdoc |
||
62 | */ |
||
63 | 1 | public function registerEncoder($name, \Closure $encoder) |
|
69 | |||
70 | /** |
||
71 | * @inheritdoc |
||
72 | */ |
||
73 | 2 | public function getEncoder($name) |
|
81 | } |
||
82 |