$name $name : string Type string — the name for this format, usually any of the constants in this class
$mime_type $mime_type : string Type string — the mime-type used for this format, i.e. application/json
$extensions $extensions : array<mixed,string> Type array<mixed,string> — a series of file extensions that are commonly associated with this type of file
__construct() __construct(string $name, string $mime_type, string|array<mixed,string> $extensions) Initializes a new format. Parameters string $name string $mime_type string|array<mixed,string> $extensions
setName() setName(string $name) : void Sets the name for this format. The names of built-in formats are defined as class constants of this class. Parameters string $name
setMimeType() setMimeType(string $mime_type) : void Sets the mime type commonly associated with files of this format. Parameters string $mime_type
getMimeType() getMimeType() : string Returns the Mime type commonly associated with files of this format. Returns string
setExtensions() setExtensions(array<mixed,string> $extensions) : void Sets the file extensions commonly associated with files of this format. Parameters array<mixed,string> $extensions
getExtensions() getExtensions() : array<mixed,string> Returns the file extensions commonly associated with files of this format. Returns array<mixed,string>
convertFilename() convertFilename(string $filename) : string Converts the given filename to be math this format. Parameters string $filename Returns string