1 | <?php |
||
21 | final class JWENormalizer implements NormalizerInterface, DenormalizerInterface |
||
22 | { |
||
23 | public function supportsNormalization($data, $format = null) |
||
27 | |||
28 | public function supportsDenormalization($data, $type, $format = null) |
||
32 | |||
33 | /** |
||
34 | * @param mixed $object Object to normalize |
||
35 | * @param string $format Format the normalization result will be encoded as |
||
36 | * |
||
37 | * @return mixed |
||
38 | */ |
||
39 | public function normalize($object, $format = null, array $context = []) |
||
43 | |||
44 | /** |
||
45 | * @param mixed $data Data to restore |
||
46 | * @param string $type The expected class to instantiate |
||
47 | * @param string $format Format the given data was extracted from |
||
48 | * |
||
49 | * @return array|object |
||
50 | */ |
||
51 | public function denormalize($data, $type, $format = null, array $context = []) |
||
55 | |||
56 | /** |
||
57 | * Check if encryption component is installed. |
||
58 | */ |
||
59 | private function componentInstalled(): bool |
||
63 | } |
||
64 |