ProviderConfigSmtp
in package
implements
ProviderConfigVariant
FinalYes
The `smtp` arm of {@see ProviderConfig} (`kind: "smtp"`).
Table of Contents
Interfaces
- ProviderConfigVariant
- Provider-specific connection details.
Properties
Methods
- __construct() : mixed
- Constructs the `smtp` arm.
- fromArray() : self
- Rebuilds the `smtp` 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: "smtp"`.
Properties
$host read-only
public
string
$host
$port read-only
public
int
$port
$starttls read-only
public
bool
$starttls
$username read-only
public
string
$username
Methods
__construct()
Constructs the `smtp` arm.
public
__construct(string $host, int $port, bool $starttls, string $username) : mixed
Parameters
- $host : string
-
the server's
hostfield - $port : int
-
the server's
portfield - $starttls : bool
-
Use STARTTLS (true) or implicit TLS (false).
- $username : string
-
the server's
usernamefield
fromArray()
Rebuilds the `smtp` 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
selfjsonSerialize()
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: "smtp"`.
public
toArray() : array<string, mixed>