state
A trait that allows the class to be serialized and unserialized.
Table of Contents
- __set_state() : mixed
- A magic method that allows the class to be serialized and unserialized.
- setState() : void
- Setting the state of the object.
- toString() : string
- Setting the state of the object.
Methods
__set_state()
A magic method that allows the class to be serialized and unserialized.
public
static __set_state(mixed $data) : mixed
Parameters
- $data : mixed
Return values
mixed —setState()
Setting the state of the object.
public
setState(mixed $data) : void
Parameters
- $data : mixed
Return values
void —toString()
Setting the state of the object.
public
toString() : string