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.
Public Methods ​
Method | Description |
---|---|
serialize() | Returns the object’s serialized value. |
serialize()
​
Returns the object’s serialized value.
Returns ​
mixed
– The serialized value