Craft 3 Class Reference

Interface craft\base\Serializable

Implemented by
craft\fields\data\ColorData, craft\fields\data\MultiOptionsFieldData, craft\fields\data\OptionData, craft\fields\data\SingleOptionFieldData
Available since version
3.0
Source Code
https://github.com/craftcms/cms/blob/master/src/base/Serializable.php

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 Defined By
serialize() Returns the object’s serialized value. craft\base\Serializable

Method Details

serialize() public abstract method #

Returns the object’s serialized value.

public abstract mixed serialize ( )
return mixed The serialized value