\Omega\Filesystem\Contracts MimeTypeProviderInterface

Interface that adds MIME type detection support to an adapter.

This interface defines a method for retrieving the MIME type of a file in the filesystem, identified by a specific key. Adapters implementing this interface should provide a way to detect or fetch the MIME type based on the file content or file extension.

Summary

Methods
Constants
mimeType()
No public constants found

Methods

mimeType()

mimeType(string  $key) : string|false

Retrieves the MIME type of the specified file (key).

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

Parameters

string $key

The file key for which the MIME type is being retrieved.

Returns

string|false —

The MIME type of the file, or false if it cannot be determined.