phpDocumentor

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.

Tags
category

System

subpackage

Serializers

Table of Contents

deserialize()  : mixed
serialize()  : mixed

Methods

deserialize()

public deserialize(mixed $string[, mixed $baseObject = null ]) : mixed
Parameters
$string : mixed
$baseObject : mixed = null
Return values
mixed

serialize()

public serialize(mixed $object[, mixed $encode = true ]) : mixed
Parameters
$object : mixed
$encode : mixed = true
Return values
mixed

Search results