Skip to content

Serializable ​

Type
Interface
Namespace
craft\base
Implemented by
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

Public Methods ​

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

serialize() ​

Returns the object’s serialized value.

View source

Returns ​

mixed – The serialized value