AXIAM PHP SDK

ProviderConfigSendGrid
in package
implements ProviderConfigVariant

FinalYes

The `send_grid` arm of {@see ProviderConfig} (`kind: "send_grid"`).

Table of Contents

Interfaces

ProviderConfigVariant
Provider-specific connection details.

Properties

$apiUrl  : string|null

Methods

__construct()  : mixed
Constructs the `send_grid` arm.
fromArray()  : self
Rebuilds the `send_grid` arm from one decoded JSON object.
jsonSerialize()  : array<string, mixed>
Renders this arm for `json_encode()`.
toArray()  : array<string, mixed>
Renders this arm to its wire form, re-attaching `kind: "send_grid"`.

Properties

Methods

__construct()

Constructs the `send_grid` arm.

public __construct([string|null $apiUrl = null ]) : mixed
Parameters
$apiUrl : string|null = null

Override base URL (useful for testing / self-hosted instances).

fromArray()

Rebuilds the `send_grid` arm from one decoded JSON object.

public static fromArray(array<string, mixed> $data) : self
Parameters
$data : array<string, mixed>

The raw wire object.

Return values
self

jsonSerialize()

Renders this arm for `json_encode()`.

public jsonSerialize() : array<string, mixed>
Return values
array<string, mixed>

toArray()

Renders this arm to its wire form, re-attaching `kind: "send_grid"`.

public toArray() : array<string, mixed>
Return values
array<string, mixed>
On this page

Search results