MediaSubType
class MediaSubType implements StringRepresentation, ComparableInterface (View source)
Media sub type
Methods
__construct(array|string $facets, string|null $structuredSyntax = null)
No description
__toString()
No description
array
getFacets()
No description
string|NULL
getFacet(integer $index)
No description
integer
getFacetCount()
No description
string
getStructuredSyntax()
Get the sub type structured syntax name
Details
at line 28
__construct(array|string $facets, string|null $structuredSyntax = null)
at line 43
__toString()
at line 57
array
getFacets()
at line 67
string|NULL
getFacet(integer $index)
at line 76
integer
getFacetCount()
at line 87
string
getStructuredSyntax()
Get the sub type structured syntax name
at line 111
compare(MediaSubType|MediaTypeInterface|string $b)
Compare sub type precision with another
A sub type {a} is more precise than another sub type {b} if - {a} has at least one facet and {b} is empty - All facets of {b} are identical to the first facets of {a} and {a} has more facets than {b} - A NotComparableException is thrown if a facet of {a} does not match the facet of {b} at the same position.