MimeMapMediaHandler.php: add minor doc

This commit is contained in:
Zankaria 2025-03-28 15:49:05 +01:00
parent 298970698e
commit b28c2b13dd

View file

@ -29,6 +29,10 @@ class MimeMapMediaHandler implements MediaHandler {
);
}
/**
* @var callable(string): ?string Maps a mime type to a path to an image to be used as thumbnail, or null if the
* mime is not supported.
*/
public function __construct(callable $mime_mapper) {
$this->mime_mapper = $mime_mapper;
}