final class MimeType (View source)

Carries one normalized media type without client-supplied parameters.

Methods

static MimeType
fromString(string $value)

Normalizes and validates the media type while discarding optional parameters

string
value()

Returns the normalized type/subtype value used by catalog lookups

string

Details

fromString

static MimeType fromString(string $value)

Normalizes and validates the media type while discarding optional parameters

Parameters

string $value

Return Value

MimeType

value

string value()

Returns the normalized type/subtype value used by catalog lookups

Return Value

string