PDFGate's PHP SDK

PdfGateEnvelope
in package

Envelope DTO returned by the create envelope endpoint.

Table of Contents

Properties

$completedAt  : DateTimeImmutable|null
$createdAt  : DateTimeImmutable
$documents  : array<int, EnvelopeDocumentResponse>
$expiredAt  : DateTimeImmutable|null
$expiresAt  : DateTimeImmutable|null
$id  : string
$metadata  : array<string, mixed>|null
$status  : string
$voidedAt  : DateTimeImmutable|null
$voidReason  : string|null

Methods

__construct()  : mixed
fromArray()  : self
getCompletedAt()  : DateTimeImmutable|null
getCreatedAt()  : DateTimeImmutable
getDocuments()  : array<int, EnvelopeDocumentResponse>
getExpiredAt()  : DateTimeImmutable|null
getExpiresAt()  : DateTimeImmutable|null
When the envelope will expire if it is not completed.
getId()  : string
getMetadata()  : array<string, mixed>|null
getStatus()  : string
Returns one of the EnvelopeStatus constants.
getVoidedAt()  : DateTimeImmutable|null
getVoidReason()  : string|null
parseOptionalDate()  : DateTimeImmutable|null
parseRequiredDate()  : DateTimeImmutable

Properties

$expiresAt

private DateTimeImmutable|null $expiresAt

When the envelope will expire if it is not completed.

Methods

__construct()

public __construct(string $id, string $status, array<int, EnvelopeDocumentResponse> $documents, DateTimeImmutable $createdAt[, DateTimeImmutable|null $completedAt = null ][, DateTimeImmutable|null $expiredAt = null ][, array<string, mixed>|null $metadata = null ][, DateTimeImmutable|null $expiresAt = null ][, DateTimeImmutable|null $voidedAt = null ][, string|null $voidReason = null ]) : mixed
Parameters
$id : string
$status : string

One of the EnvelopeStatus constants.

$documents : array<int, EnvelopeDocumentResponse>
$createdAt : DateTimeImmutable
$completedAt : DateTimeImmutable|null = null
$expiredAt : DateTimeImmutable|null = null
$metadata : array<string, mixed>|null = null
$expiresAt : DateTimeImmutable|null = null
$voidedAt : DateTimeImmutable|null = null
$voidReason : string|null = null

fromArray()

public static fromArray(array<string, mixed> $payload) : self
Parameters
$payload : array<string, mixed>
Return values
self

getCompletedAt()

public getCompletedAt() : DateTimeImmutable|null
Return values
DateTimeImmutable|null

getCreatedAt()

public getCreatedAt() : DateTimeImmutable
Return values
DateTimeImmutable

getExpiredAt()

public getExpiredAt() : DateTimeImmutable|null
Return values
DateTimeImmutable|null

getExpiresAt()

When the envelope will expire if it is not completed.

public getExpiresAt() : DateTimeImmutable|null
Return values
DateTimeImmutable|null

getMetadata()

public getMetadata() : array<string, mixed>|null
Return values
array<string, mixed>|null

getStatus()

Returns one of the EnvelopeStatus constants.

public getStatus() : string
Return values
string

getVoidedAt()

public getVoidedAt() : DateTimeImmutable|null
Return values
DateTimeImmutable|null

getVoidReason()

public getVoidReason() : string|null
Return values
string|null

parseOptionalDate()

private static parseOptionalDate(array<string, mixed> $payload, string $field) : DateTimeImmutable|null
Parameters
$payload : array<string, mixed>
$field : string
Return values
DateTimeImmutable|null

parseRequiredDate()

private static parseRequiredDate(array<string, mixed> $payload, string $field) : DateTimeImmutable
Parameters
$payload : array<string, mixed>
$field : string
Return values
DateTimeImmutable
On this page

Search results