+
+
@@ -116,11 +118,17 @@
+
+
+
+
+
@@ -128,14 +136,15 @@
-
-
-
-
+
Table of Contents
-
+
+
+
+
+
+
+
+
+
+ Constants
+
+
+
-
TOKEN_DELIMETER
= ';'
-
-
TOKEN_EQUAL
= '='
-
-
TOKEN_TYPE_SEPARATOR
= '/'
-
- -
+
+
+
+
+ Properties
+
+
+
+
+ -
$parameters
: array<string|int, string>
-
-
$subType
: string
-
-
$type
: string
-
- -
+
+
+
+ Methods
+
+
+
+
+ -
__construct()
: mixed
-
-
__toString()
: string
-
-
getEssence()
@@ -267,9 +294,9 @@
: self|null
-
-
+
+
@@ -278,11 +305,13 @@
TOKEN_DELIMETER
+
@@ -301,10 +331,8 @@
-
-
-
-
+
+
@@ -312,6 +340,7 @@
TOKEN_EQUAL
+
@@ -330,10 +360,8 @@
-
-
-
-
+
+
@@ -341,6 +369,7 @@
TOKEN_TYPE_SEPARATOR
+
@@ -359,10 +389,8 @@
-
-
-
-
+
+
@@ -373,6 +401,7 @@
$parameters
+
@@ -392,6 +422,7 @@
:
31
+
@@ -406,18 +437,19 @@
Tags
-
+
+
-
see
-
- https://mimesniff.spec.whatwg.org/#parameters
+ https://mimesniff.spec.whatwg.org/#parameters
-
+
$subType
+
@@ -438,6 +471,7 @@
:
25
+
@@ -452,18 +486,19 @@
Tags
-
+
+
-
see
-
- https://mimesniff.spec.whatwg.org/#subtype
+ https://mimesniff.spec.whatwg.org/#subtype
-
+
$type
+
@@ -484,6 +520,7 @@
:
19
+
@@ -498,18 +535,19 @@
Tags
-
+
+
-
see
-
- https://mimesniff.spec.whatwg.org/#type
+ https://mimesniff.spec.whatwg.org/#type
-
+
@@ -518,6 +556,7 @@
__construct()
+
@@ -541,6 +582,8 @@
public
__construct(string $type, string $subType, array<string|int, mixed> $parameters) : mixed
+
+
Parameters
@@ -569,10 +612,6 @@ Parameters
- Return values
- mixed
- —
-
Return values
__toString()
+
@@ -597,15 +638,17 @@
public
__toString() : string
+
+
+
Return values
- string
- —
-
-
+ string
+
+
Return values
getEssence()
+
Gives the type and subtype of a media type.
@@ -630,6 +675,8 @@
public
getEssence() : string
+
+
e.g, if given 'text/plain;charset=UTF-8', it will return 'text/plain'.
@@ -637,24 +684,25 @@
Tags
-
+
+
-
see
-
- https://mimesniff.spec.whatwg.org/#mime-type-essence
+ https://mimesniff.spec.whatwg.org/#mime-type-essence
-
+
+
Return values
- string
- —
-
-
+ string
+
+
Return values
getParameters()
+
Gives an array of parameters of a media type,
@@ -680,29 +730,32 @@
public
getParameters() : array<string|int, mixed>
+
+
Tags
-
+
+
-
see
-
- https://mimesniff.spec.whatwg.org/#parameters
+ https://mimesniff.spec.whatwg.org/#parameters
-
+
+
Return values
- array<string|int, mixed>
- —
-
-
+ array<string|int, mixed>
+
+
Return values
getParameterValue()
+
Gives the value of a specified parameter of a media type,
@@ -728,6 +783,8 @@
public
getParameterValue(string $parameterName) : string|null
+
+
e.g, if given a media type of 'text/plain;charset=UTF-8', and the
given parameter is 'charset', it will return 'UTF-8'.
@@ -745,11 +802,11 @@ Parameters
+
Return values
- string|null
- —
-
-
+ string|null
+
+
Return values
getSubType()
+
Gives the second portion of a media type's essence.
@@ -774,6 +833,8 @@
public
getSubType() : string
+
+
e.g, if given 'text/plain', it will return 'plain'.
@@ -781,24 +842,25 @@
Tags
-
+
+
-
see
-
- https://mimesniff.spec.whatwg.org/#subtype
+ https://mimesniff.spec.whatwg.org/#subtype
-
+
+
Return values
- string
- —
-
-
+ string
+
+
Return values
getType()
+
Gives the first portion of a media type's essence.
@@ -823,6 +887,8 @@
public
getType() : string
+
+
e.g, if given 'text/plain', it will return 'text'.
@@ -830,24 +896,25 @@
Tags
-
+
+
-
see
-
- https://mimesniff.spec.whatwg.org/#type
+ https://mimesniff.spec.whatwg.org/#type
-
+
+
Return values
- string
- —
-
-
+ string
+
+
Return values
newFromString()
+
@@ -871,6 +940,8 @@
public
static newFromString(string $input) : self|null
+
+
Parameters
@@ -885,78 +956,159 @@ Parameters
+
Return values
- self|null
- —
-
-
-
+ self|null
-
-
-
+
+
+