AbstractLocation
in package
implements
HeaderInterface
AbstractYes
Abstract Location Header Supports headers that have URI as value
Tags
Table of Contents
Interfaces
- HeaderInterface
- Interface for HTTP Header classes.
Properties
- $uri : UriInterface
- URI for this header
Methods
- __toString() : string
- Allow casting to string
- fromString() : static
- Create location-based header from string
- getFieldValue() : string
- Get header value as URI string
- getUri() : string
- Return the URI for this header
- setUri() : $this
- Set the URI/URL for this header, this can be a string or an instance of Laminas\Uri\Http
- toString() : string
- Output header line
- uri() : UriInterface
- Return the URI for this header as an instance of Laminas\Uri\Http
Properties
$uri
URI for this header
protected
UriInterface
$uri
Methods
__toString()
Allow casting to string
public
__toString() : string
Return values
stringfromString()
Create location-based header from string
public
static fromString(string $headerLine) : static
Parameters
- $headerLine : string
Tags
Return values
staticgetFieldValue()
Get header value as URI string
public
getFieldValue() : string
Return values
stringgetUri()
Return the URI for this header
public
getUri() : string
Return values
stringsetUri()
Set the URI/URL for this header, this can be a string or an instance of Laminas\Uri\Http
public
setUri(string|UriInterface $uri) : $this
Parameters
- $uri : string|UriInterface
Tags
Return values
$thistoString()
Output header line
public
toString() : string
Return values
stringuri()
Return the URI for this header as an instance of Laminas\Uri\Http
public
uri() : UriInterface