SerializerInterface

Extends

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.

category

System

package

Extensions

subpackage

Serializers

Methods

deserialize

deserialize( $string,  $baseObject = null) 

Arguments

$string

$baseObject

serialize

serialize( $object,  $encode = true) 

Arguments

$object

$encode