ConversionMimeProvider
in package
implements
JsonSerializable
A tuple-like object representing both an original and target MIME type for a file conversion
Tags
Table of Contents
Interfaces
- JsonSerializable
Properties
- $displayName : string
- $extension : string
- $from : string
- $to : string
Methods
- __construct() : mixed
- getDisplayName() : string
- getExtension() : string
- getFrom() : string
- getTo() : string
- jsonSerialize() : array{from: string, to: string, extension: string, displayName: string}
Properties
$displayName
private
string
$displayName
$extension
private
string
$extension
$from
private
string
$from
$to
private
string
$to
Methods
__construct()
public
__construct(string $from, string $to, string $extension, string $displayName) : mixed
Parameters
- $from : string
-
The source MIME type of a file
- $to : string
-
The target MIME type for the file
- $extension : string
-
The file extension for the target MIME type (e.g. 'png')
- $displayName : string
-
The human-readable name of the target MIME type (e.g. 'Image (.png)')
Tags
getDisplayName()
public
getDisplayName() : string
Return values
stringgetExtension()
public
getExtension() : string
Return values
stringgetFrom()
public
getFrom() : string
Return values
stringgetTo()
public
getTo() : string
Return values
stringjsonSerialize()
public
jsonSerialize() : array{from: string, to: string, extension: string, displayName: string}