Setup implements IConfig
FinalYes
Table of Contents
Interfaces
Constants
- BUSINESS_ID = 'external_business_id'
- BUSINESS_TYPE = 'business_vertical'
- CHANNEL = 'channel'
- CURRENCY = 'currency'
- TIMEZONE = 'timezone'
Methods
- __construct() : mixed
- Setup constructor.
- create() : IConfig
- default() : IConfig
- build default setup instance
- delete() : void
- get() : mixed
- jsonSerialize() : array<string|int, mixed>
- load() : IConfig|static|null
- load current configuration
- loadFromArray() : IConfig
- build setup instance from array
- save() : bool
- save changes
- set() : $this
- toArray() : array<string|int, mixed>
- TO facebook array
Constants
BUSINESS_ID
public
mixed
BUSINESS_ID
= 'external_business_id'
BUSINESS_TYPE
public
mixed
BUSINESS_TYPE
= 'business_vertical'
CHANNEL
public
mixed
CHANNEL
= 'channel'
CURRENCY
public
mixed
CURRENCY
= 'currency'
TIMEZONE
public
mixed
TIMEZONE
= 'timezone'
Methods
__construct()
Setup constructor.
public
__construct() : mixed
create()
public
static create() : IConfig
Return values
IConfigdefault()
build default setup instance
public
static default() : IConfig
Return values
IConfigdelete()
public
delete() : void
get()
public
get(string $name) : mixed
Parameters
- $name : string
jsonSerialize()
public
jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>load()
load current configuration
public
static load() : IConfig|static|null
Return values
IConfig|static|nullloadFromArray()
build setup instance from array
public
static loadFromArray(array<string|int, mixed> $array) : IConfig
Parameters
- $array : array<string|int, mixed>
Return values
IConfigsave()
save changes
public
save() : bool
Return values
boolset()
public
set(string $name, mixed $value) : $this
Parameters
- $name : string
- $value : mixed
Return values
$thistoArray()
TO facebook array
public
toArray() : array<string|int, mixed>