Copied!
AbstractInterface
Methods
public abstract encode(?mixed $data, string $format, array $context = []) : string
 

Encodes data into the given format.

  • param mixed $data Data to encode
  • param string $format Format name
  • param array $context Options that normalizers/encoders have access to
  • throws \UnexpectedValueException
public abstract supportsEncoding(string $format) : bool
 

Checks whether the serializer can encode to given format.

  • param string $format Format name
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration