Format
in package
Container describing dissemination service return format.
Format consists of a format name (in most cases MIME type but there can be exceptions) and weight (as weights used in the HTTP Accept header).
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- Creates a return format description.
- __toString() : string
- Provides pretty-print serializaton
Properties
$format
Return format name (typically a MIME type)
public
string
$format
$weight
Return format weight
public
float
$weight
= 1
Methods
__construct()
Creates a return format description.
public
__construct(string $value) : mixed
Parameters
- $value : string
-
return type description in format "type" or "type;q=weight", where weight is a number between 0 and 1
__toString()
Provides pretty-print serializaton
public
__toString() : string