PDFGate's PHP SDK

PdfGateRecipient
in package

Stored recipient DTO returned by the recipient directory endpoints.

Table of Contents

Properties

$createdAt  : DateTimeImmutable|null
$email  : string
$id  : string
$lastUsedAt  : DateTimeImmutable|null
$metadata  : array<string, mixed>|null
$name  : string|null
$signature  : RecipientStoredSignature|null
$updatedAt  : DateTimeImmutable|null

Methods

__construct()  : mixed
fromArray()  : self
getCreatedAt()  : DateTimeImmutable|null
getEmail()  : string
Recipient email. Stored lowercased and cannot be changed after creation.
getId()  : string
getLastUsedAt()  : DateTimeImmutable|null
When the recipient was last referenced by an envelope.
getMetadata()  : array<string, mixed>|null
getName()  : string|null
getSignature()  : RecipientStoredSignature|null
Automatic signing. The stored signature of the recipient or the state of its enrolment. Null until an enrolment was requested with requestRecipientSignature().
getUpdatedAt()  : DateTimeImmutable|null
parseOptionalDate()  : DateTimeImmutable|null

Properties

Methods

__construct()

public __construct(string $id, string $email[, string|null $name = null ][, array<string, mixed>|null $metadata = null ][, DateTimeImmutable|null $createdAt = null ][, DateTimeImmutable|null $updatedAt = null ][, DateTimeImmutable|null $lastUsedAt = null ][, RecipientStoredSignature|null $signature = null ]) : mixed
Parameters
$id : string
$email : string
$name : string|null = null
$metadata : array<string, mixed>|null = null
$createdAt : DateTimeImmutable|null = null
$updatedAt : DateTimeImmutable|null = null
$lastUsedAt : DateTimeImmutable|null = null
$signature : RecipientStoredSignature|null = null

fromArray()

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

getCreatedAt()

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

getEmail()

Recipient email. Stored lowercased and cannot be changed after creation.

public getEmail() : string
Return values
string

getLastUsedAt()

When the recipient was last referenced by an envelope.

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

getMetadata()

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

getUpdatedAt()

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

parseOptionalDate()

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

Search results