TechnicalDefinitions
in package
Technical definitions for a service.
Table of Contents
Constants
- TYPE_HTTP = 'http'
- TYPE_INDEXED_DB = 'indexedDb'
- TYPE_LOCAL_STORAGE = 'local'
- TYPE_SESSION_STORAGE = 'session'
Properties
- $duration : int
- The duration.
- $durationUnit : string
- The duration unit.
- $host : string
- The host or URL.
- $isSessionDuration : bool
- Is session duration?
- $name : string
- The name.
- $purpose : string
- Purpose of the cookie.
- $type : string
- HTTP cookie, local storage, session storage, .
Methods
- fromJson() : mixed
- Generate a `ProviderContact` object from an array.
- getDuration() : mixed
- Getter.
- getDurationUnit() : mixed
- Getter.
- getHost() : mixed
- Getter.
- getName() : mixed
- Getter.
- getPurpose() : mixed
- Getter.
- getType() : mixed
- Getter.
- isSessionDuration() : mixed
- Getter.
- setDuration() : mixed
- Setter.
- setDurationUnit() : mixed
- Setter.
- setHost() : mixed
- Setter.
- setIsSessionDuration() : mixed
- Setter.
- setName() : mixed
- Setter.
- setPurpose() : mixed
- Setter.
- setType() : mixed
- Setter.
- toJson() : mixed
- Create a JSON representation of this object.
Constants
TYPE_HTTP
public
mixed
TYPE_HTTP
= 'http'
TYPE_INDEXED_DB
public
mixed
TYPE_INDEXED_DB
= 'indexedDb'
TYPE_LOCAL_STORAGE
public
mixed
TYPE_LOCAL_STORAGE
= 'local'
TYPE_SESSION_STORAGE
public
mixed
TYPE_SESSION_STORAGE
= 'session'
Properties
$duration
The duration.
private
int
$duration
= 1
$durationUnit
The duration unit.
private
string
$durationUnit
= 'y'
$host
The host or URL.
private
string
$host
= ''
$isSessionDuration
Is session duration?
private
bool
$isSessionDuration
= false
$name
The name.
private
string
$name
= ''
$purpose
Purpose of the cookie.
private
string
$purpose
= ''
$type
HTTP cookie, local storage, session storage, .
private
string
$type
= self::TYPE_HTTP
..
Methods
fromJson()
Generate a `ProviderContact` object from an array.
public
static fromJson(array<string|int, mixed> $data) : mixed
Parameters
- $data : array<string|int, mixed>
getDuration()
Getter.
public
getDuration() : mixed
Tags
getDurationUnit()
Getter.
public
getDurationUnit() : mixed
Tags
getHost()
Getter.
public
getHost() : mixed
Tags
getName()
Getter.
public
getName() : mixed
Tags
getPurpose()
Getter.
public
getPurpose() : mixed
Tags
getType()
Getter.
public
getType() : mixed
Tags
isSessionDuration()
Getter.
public
isSessionDuration() : mixed
Tags
setDuration()
Setter.
public
setDuration(int $duration) : mixed
Parameters
- $duration : int
Tags
setDurationUnit()
Setter.
public
setDurationUnit(string $durationUnit) : mixed
Parameters
- $durationUnit : string
Tags
setHost()
Setter.
public
setHost(string $host) : mixed
Parameters
- $host : string
Tags
setIsSessionDuration()
Setter.
public
setIsSessionDuration(bool $isSessionDuration) : mixed
Parameters
- $isSessionDuration : bool
Tags
setName()
Setter.
public
setName(string $name) : mixed
Parameters
- $name : string
Tags
setPurpose()
Setter.
public
setPurpose(bool $purpose) : mixed
Parameters
- $purpose : bool
Tags
setType()
Setter.
public
setType(string $type) : mixed
Parameters
- $type : string
Tags
toJson()
Create a JSON representation of this object.
public
toJson() : mixed