MimeMap

MapHandler
in package

AbstractYes

Class for managing map singletons.

Table of Contents

Constants

DEFAULT_MAP_CLASS  = \FileEye\MimeMap\Map\DefaultMap::class
The default map PHP class.

Properties

$defaultMapClass  : MimeMapInterface>
The default map class to use.

Methods

map()  : MimeMapInterface
Returns the map instance.
setDefaultMapClass()  : void
Sets a map class as default for new instances.

Constants

DEFAULT_MAP_CLASS

The default map PHP class.

public mixed DEFAULT_MAP_CLASS = \FileEye\MimeMap\Map\DefaultMap::class

Properties

$defaultMapClass

The default map class to use.

protected static MimeMapInterface> $defaultMapClass = self::DEFAULT_MAP_CLASS

It can be overridden by ::setDefaultMapClass.

Methods

map()

Returns the map instance.

public static map([MimeMapInterface>|null $mapClass = null ]) : MimeMapInterface
Parameters
$mapClass : MimeMapInterface>|null = null

(Optional) The map FQCN to be used. If null, the default map will be used.

Return values
MimeMapInterface

setDefaultMapClass()

Sets a map class as default for new instances.

public static setDefaultMapClass(MimeMapInterface> $mapClass) : void
Parameters
$mapClass : MimeMapInterface>

A FQCN.


        
On this page

Search results