Interface for class of which instances can be exported using var_export().
In some components, objects can be stored (e.g. to disc) using the var_export() function. To ensure that an object supports proper importing again, this interface should be implemented.
Source for this file: /Base/src/interfaces/exportable.php
public static object |
__set_state(
$state
)
Returns an instance of the desired object, initialized from $state. |
Returns an instance of the desired object, initialized from $state.
This method must return a new instance of the class it is implemented in, which has its properties set from the given $state array.
Name | Type | Description |
---|---|---|
$state |
array |