\Omega\Filesystem\Contracts SizeCalculatorInterface

Interface that adds size calculation support to an adapter.

This interface defines a method for retrieving the size of a file in the filesystem, identified by a specific key. Adapters implementing this interface should provide a mechanism to calculate or fetch the file size.

Summary

Methods
Constants
size()
No public constants found

Methods

size()

size(string  $key) : int|false

Retrieves the size of the specified file (key).

This method returns the size of a file identified by its key. If the size cannot be determined, it should return false.

Parameters

string $key

The file key for which the size is being retrieved.

Returns

int|false —

The size of the file in bytes, or false if it cannot be determined.