Home Manual Reference Source Test Repository
public class | source

SerializerAware

Extends:

SerializerInterface → SerializerAware

Direct Subclass:

AbstractSerializer

Any serializer implementing this interface will access to a serializer at runtime.

Test:

Constructor Summary

Public Constructor
public

Member Summary

Protected Members
protected

Method Summary

Public Methods
public

Inherited Summary

From class SerializerInterface
public

deserialize(data: *, className: string, format: string, context: *): *

Deserializes data back into an object of the given class.

public

serialize(data: *, format: string, context: *): *

Serializes any data object into and object usable for the backend service.

public

supportsDeserialize(data: *, className: string, format: string): boolean

Checks whether the given class is supported for deserialization by this serializer.

public

supportsSerialize(data: *, format: string): boolean

Checks whether the given class is supported for serialization by this serializer.

Public Constructors

Protected Members

protected _serializer: SerializerInterface source

Public Methods

public setSerializer(serializer: SerializerInterface) source

Params:

NameTypeAttributeDescription
serializer SerializerInterface

Test: