Method | Description | |
---|---|---|
__construct ( array $fileExtensionMap = [] ) | Constructor. | |
convert ( string $input ) : string | Convert the input data. | |
getOutExtension ( string $extension ) : string | The extension of filename result (without dot). E.g: 'html'. | |
getPriority ( ) : integer | Get the converter priority. | |
matches ( string $extension ) : boolean | If file's extension is support by converter. |
public __construct ( array $fileExtensionMap = [] ) | ||
$fileExtensionMap | array | An extension map. e.g: ```php $converter = new MappingConverter([ 'twig' => 'html', 'twig.html' => 'html', ]); ``` |
public getOutExtension ( string $extension ) : string | ||
$extension | string | File's extension |
return | string |
public getPriority ( ) : integer | ||
return | integer |