Folder::__unserialize()

Converts the serialized data back to its object.

Table of Contents
  1. Description
  2. Example

Description

Folder::__unserialize(array $lot): void;

This method will be called when the serialized data is successfully returned into a Folder instance using the built-in PHP unserialize() function.

Example

$folder = unserialize('O:6:"Folder":1:{s:4:"path";s:16:".\path\to\folder";}');

echo $folder->size; // Returns `'0 B'`

Folder::__unserialize()

Converts the serialized data back to its object.

Folder::size()

Gets the total sizes of files contained in the folder in human readable string format.