Serializable

Type
Interface
Namespace
craft\base
Implemented by
craft\base\MemoizableArray, craft\fields\data\ColorData, craft\fields\data\OptionData, craft\fields\data\SingleOptionFieldData, craft\test\mockclasses\serializable\Serializable
Since
3.0.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 (opens new window)

# Public Methods

Method Description
serialize() Returns the object’s serialized value.

# serialize()

Returns the object’s serialized value.

View source (opens new window)

Returns

mixed – The serialized value