- author Jordi Boggiano
AbstractInterface
Methods |
public abstract getSupportedTypes(?string $format) : array Returns the types potentially supported by this normalizer. For each supported formats (if applicable), the supported types should be returned as keys, and each type should be mapped to a boolean indicating if the result of supportsNormalization() can be cached or not (a result cannot be cached when it depends on the context or on the data.) A null value means that the normalizer does not support the corresponding type. Use type "object" to match any classes or interfaces, and type "*" to match any types. |
public abstract normalize(?mixed $object, ?string $format = NULL, array $context = []) : ArrayObject|array|string|int|float|bool|?null Normalizes an object into a set of arrays/scalars.
|
public abstract supportsNormalization(?mixed $data, ?string $format = NULL, array $context = []) : bool Checks whether the given class is supported for normalization by this normalizer.
|