Serializable

Type
Interface
Namespace
craft\base
Implemented by
craft\fields\data\ColorData, craft\fields\data\OptionData, craft\fields\data\SingleOptionFieldData
Since
3.0

Serializable is the interface that should be implemented by classes who want to support customizable representation of their instances when getting stored somewhere.

View source

Public Methods

MethodDescription
serialize()Returns the object’s serialized value.

serialize()

Returns the object’s serialized value.

View source

Returns

mixed – The serialized value

Signature

public abstract mixed serialize ( )