__set_state()
for Exporting Objects__set_state()
for Exporting ObjectsThe __set_state()
magic method allows your objects to be exported with var_export()
. Implementing this method enables you to customize how objects are reconstituted when using var_export()
.