Documentation

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
author

zozlak

Table of Contents

Properties

$format  : string
Return format name (typically a MIME type)
$weight  : float
Return format weight

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
Return values
string

        
On this page

Search results