| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | 1 | interface ISerializer extends EncoderInterface |
|
| 34 | { |
||
| 35 | /** |
||
| 36 | * @param array|Iterator|NULL $data |
||
| 37 | * @param EncodingParametersInterface|NULL $parameters |
||
| 38 | * |
||
| 39 | * @return array |
||
| 40 | */ |
||
| 41 | public function serializeData($data, EncodingParametersInterface $parameters = NULL); |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @param array|Iterator|NULL $data |
||
| 45 | * @param EncodingParametersInterface|NULL $parameters |
||
| 46 | * |
||
| 47 | * @return array |
||
| 48 | */ |
||
| 49 | public function serializeIdentifiers($data, EncodingParametersInterface $parameters = NULL); |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @param ErrorInterface $error |
||
| 53 | * |
||
| 54 | * @return array |
||
| 55 | */ |
||
| 56 | public function serializeError(ErrorInterface $error); |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @param ErrorInterface[]|ErrorCollection $errors |
||
| 60 | * |
||
| 61 | * @return array |
||
| 62 | */ |
||
| 63 | public function serializeErrors($errors); |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @param array $meta |
||
| 67 | * |
||
| 68 | * @return array |
||
| 69 | */ |
||
| 70 | public function serializeMeta($meta); |
||
| 71 | } |
||
| 72 |