Time\Duration::__unserialize
(PHP 8 >= 8.6.0)
Time\Duration::__unserialize — Restores a duration from serialized data
Description
Deserializes the array from the data parameter
into a Time\Duration object.
This method is called by unserialize() and is not
meant to be called directly.
Return Values
No value is returned.
Errors/Exceptions
If data does not describe a valid duration, an
Exception is thrown.
See Also
- serialize() - Generates a storable representation of a value
- unserialize() - Creates a PHP value from a stored representation
- Magic Methods
来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
