ResourceSpaceProviderInstance
in package
implements
ProviderInstanceInterface
FinalYes
Table of Contents
Interfaces
Properties
- $baseURL : string
- $configuration : array<string|int, mixed>
- $key : string
- $name : string
- $username : string
Methods
- getName() : string
- Get Providers' instance (user friendly) name
- parseRaw() : self|string
- toArray() : array<string|int, mixed>
- Convert to array
- __construct() : mixed
Properties
$baseURL
private
string
$baseURL
$configuration
private
array<string|int, mixed>
$configuration
$key
private
string
$key
$name
private
string
$name
$username
private
string
$username
Methods
getName()
Get Providers' instance (user friendly) name
public
getName() : string
Return values
stringparseRaw()
public
static parseRaw(string $data) : self|string
Parameters
- $data : string
-
Raw data to be parsed to obtain the Providers' details
Return values
self|string —Return a ProviderInstanceInterface or an error. The error can be either an actual error message, or a language key (eg. image_banks_error_resourcespace_invalid_instance_cfg).
toArray()
Convert to array
public
toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>__construct()
private
__construct(string $name, array<string|int, mixed> $details) : mixed
Parameters
- $name : string
- $details : array<string|int, mixed>