Transmission
extends DomainValue
in package
Public delivery lifecycle for a Chime.
Use the lifecycle status and timestamps to determine whether delivery was initialized, sent, delivered, failed, or suppressed.
Tags
Table of Contents
Properties
- $address : string
- Recipient address used for this delivery.
- $createdAt : DateTimeImmutable
- Time at which the public delivery record was created.
- $deliveredAt : DateTimeImmutable|null
- Time at which delivery completed, when delivered.
- $failedAt : DateTimeImmutable|null
- Time at which delivery failed, when failed.
- $initializedAt : DateTimeImmutable
- Time at which delivery processing began.
- $mechanism : string
- Delivery channel, such as `sms` or `email`.
- $sentAt : DateTimeImmutable|null
- Time at which the message was sent, when sent.
- $sentVia : string|null
- Channel used to send the message, when reported.
- $status : string
- Current public delivery lifecycle state.
- $suppressedAt : DateTimeImmutable|null
- Time at which delivery to the recipient was suppressed, when applicable.
Methods
- __construct() : mixed
- Hydrates a Transmission from decoded Inttegro API data.
- fromArray() : static
- Creates a Transmission from its decoded API wire representation.
- jsonSerialize() : array<string, mixed>
- Returns the same API wire object as `toArray()` for `json_encode()`.
- offsetExists() : bool
- Reports whether a non-null property exists for a PHP or API field name.
- offsetGet() : mixed
- Reads a typed property through PHP `ArrayAccess`.
- offsetSet() : void
- Rejects mutation because domain values are immutable.
- offsetUnset() : void
- Rejects unsetting because domain values are immutable.
- toArray() : array<string, mixed>
- Converts typed properties back to the API's wire representation.
Properties
$address read-only
Recipient address used for this delivery.
public
string
$address
Required response field. PHP type: string; wire field: address (string).
$createdAt read-only
Time at which the public delivery record was created.
public
DateTimeImmutable
$createdAt
Required response field. PHP type: DateTimeImmutable; wire field: created_at
(ISO-8601 string with UTC offset).
$deliveredAt read-only
Time at which delivery completed, when delivered.
public
DateTimeImmutable|null
$deliveredAt
Optional response field. PHP type: DateTimeImmutable|null; wire field: delivered_at
(ISO-8601 string with UTC offset).
$failedAt read-only
Time at which delivery failed, when failed.
public
DateTimeImmutable|null
$failedAt
Optional response field. PHP type: DateTimeImmutable|null; wire field: failed_at
(ISO-8601 string with UTC offset).
$initializedAt read-only
Time at which delivery processing began.
public
DateTimeImmutable
$initializedAt
Required response field. PHP type: DateTimeImmutable; wire field: initialized_at
(ISO-8601 string with UTC offset).
$mechanism read-only
Delivery channel, such as `sms` or `email`.
public
string
$mechanism
Required response field. PHP type: string; wire field: mechanism (string).
$sentAt read-only
Time at which the message was sent, when sent.
public
DateTimeImmutable|null
$sentAt
Optional response field. PHP type: DateTimeImmutable|null; wire field: sent_at
(ISO-8601 string with UTC offset).
$sentVia read-only
Channel used to send the message, when reported.
public
string|null
$sentVia
Optional response field. PHP type: string|null; wire field: sent_via (string).
$status read-only
Current public delivery lifecycle state.
public
string
$status
Required response field. PHP type: string; wire field: status (string).
$suppressedAt read-only
Time at which delivery to the recipient was suppressed, when applicable.
public
DateTimeImmutable|null
$suppressedAt
Optional response field. PHP type: DateTimeImmutable|null; wire field: suppressed_at
(ISO-8601 string with UTC offset).
Methods
__construct()
Hydrates a Transmission from decoded Inttegro API data.
public
__construct(array<string, mixed> $data) : mixed
Unknown wire fields are ignored and are never exposed through this public value.
Parameters
- $data : array<string, mixed>
-
Wire object keyed by
snake_caseAPI field names.
fromArray()
Creates a Transmission from its decoded API wire representation.
public
static fromArray(array<string, mixed> $data) : static
Parameters
- $data : array<string, mixed>
-
Wire object keyed by
snake_caseAPI field names.
Return values
static —A typed, immutable Transmission value.
jsonSerialize()
Returns the same API wire object as `toArray()` for `json_encode()`.
public
jsonSerialize() : array<string, mixed>
Return values
array<string, mixed>offsetExists()
Reports whether a non-null property exists for a PHP or API field name.
public
offsetExists(mixed $offset) : bool
Both paymentId and payment_id address the same typed property.
Parameters
- $offset : mixed
-
PHP
camelCaseor wiresnake_casefield name.
Return values
booloffsetGet()
Reads a typed property through PHP `ArrayAccess`.
public
offsetGet(mixed $offset) : mixed
Parameters
- $offset : mixed
-
PHP
camelCaseor wiresnake_casefield name.
Return values
mixed —The PHP-native property value.
offsetSet()
Rejects mutation because domain values are immutable.
public
offsetSet(mixed $offset, mixed $value) : void
Parameters
- $offset : mixed
-
Ignored field name.
- $value : mixed
-
Ignored replacement value.
Tags
offsetUnset()
Rejects unsetting because domain values are immutable.
public
offsetUnset(mixed $offset) : void
Parameters
- $offset : mixed
-
Ignored field name.
Tags
toArray()
Converts typed properties back to the API's wire representation.
public
toArray() : array<string, mixed>
Property names become snake_case. Nested values, arrays, backed enums, and timestamps are
normalized recursively so the result is safe to pass to json_encode().
Return values
array<string, mixed> —The recursively normalized API object.