Folder::__get()

Proxy for missing properties.

Table of Contents
  1. Description
  2. Example

Description

Folder::__get(string $key): mixed;

This method will be called when a public property is not available on class Folder. By default, this method will first try to find an existing public method and call it with empty argument.

Example

$folder = new Folder('.\path\to\folder');

$asdf = $folder->asdf; // Returns `null` because property `asdf` does not exist
$name = $folder->name; // Returns `$folder->name()` because method `name()` does exist

Folder::__get()

Proxy for missing properties.

Folder::size()

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