Format
in package
The Format class is a convenient place to create Formatters.
Tags
Table of Contents
Properties
- $config : Format
- Configuration instance
Methods
- __construct() : mixed
- Constructor.
- getConfig() : Format
- Returns the current configuration instance.
- getFormatter() : FormatterInterface
- A Factory method to return the appropriate formatter for the given mime type.
Properties
$config
Configuration instance
protected
Format
$config
Methods
__construct()
Constructor.
public
__construct(Format $config) : mixed
Parameters
- $config : Format
getConfig()
Returns the current configuration instance.
public
getConfig() : Format
Return values
FormatgetFormatter()
A Factory method to return the appropriate formatter for the given mime type.
public
getFormatter(string $mime) : FormatterInterface
Parameters
- $mime : string