Interface SerializerInterface

Interface SerializerInterface

Serializers that implement this interface should parse and encode entities so that they can be used in the shop's APIs.

Serialization must follow the "null" approach in order to enhance response clarity. That means that serializers must provide a null value than an empty string or an omitted node.

Direct known implementers

AbstractJsonSerializer

Methods summary

public serialize( $object, $encode = true )
public deserialize( $string, $baseObject = null )