Age
in package
implements
HeaderInterface
Age HTTP Header
Tags
Table of Contents
Interfaces
- HeaderInterface
- Interface for HTTP Header classes.
Properties
- $deltaSeconds : int
- Estimate of the amount of time in seconds since the response
Methods
- __construct() : mixed
- fromString() : static
- Create Age header from string
- getDeltaSeconds() : int
- Get number of seconds
- getFieldName() : string
- Get header name
- getFieldValue() : string
- Get header value (number of seconds)
- setDeltaSeconds() : $this
- Set number of seconds
- toString() : string
- Return header line In case of overflow RFC states to set value of 2147483648 (2^31)
Properties
$deltaSeconds
Estimate of the amount of time in seconds since the response
protected
int
$deltaSeconds
Methods
__construct()
public
__construct([null|int $deltaSeconds = null ]) : mixed
Parameters
- $deltaSeconds : null|int = null
fromString()
Create Age header from string
public
static fromString(string $headerLine) : static
Parameters
- $headerLine : string
Tags
Return values
staticgetDeltaSeconds()
Get number of seconds
public
getDeltaSeconds() : int
Return values
intgetFieldName()
Get header name
public
getFieldName() : string
Return values
stringgetFieldValue()
Get header value (number of seconds)
public
getFieldValue() : string
Return values
stringsetDeltaSeconds()
Set number of seconds
public
setDeltaSeconds(int $delta) : $this
Parameters
- $delta : int
Return values
$thistoString()
Return header line In case of overflow RFC states to set value of 2147483648 (2^31)
public
toString() : string