PDFGate's PHP SDK

RecipientStoredSignature
in package

Automatic signing. The reusable signature a recipient stored through the enrolment link, or the state of the enrolment.

Table of Contents

Properties

$adoptionMethod  : string|null
$enrolledAt  : DateTimeImmutable|null
$image  : string|null
$lastUsedAt  : DateTimeImmutable|null
$requestedAt  : DateTimeImmutable|null
$revokedAt  : DateTimeImmutable|null
$status  : string
$useCount  : int

Methods

__construct()  : mixed
fromArray()  : self
getAdoptionMethod()  : string|null
How the recipient created the signature. Returns one of the SignatureAdoptionMethod constants, or null until the enrolment is completed.
getEnrolledAt()  : DateTimeImmutable|null
When the recipient completed the enrolment.
getImage()  : string|null
The signature as a PNG data URL (data:image/png;base64,...). Returned only by getRecipient() while the signature is active; null otherwise.
getLastUsedAt()  : DateTimeImmutable|null
When the signature was last applied to a document.
getRequestedAt()  : DateTimeImmutable|null
When the enrolment link was last sent.
getRevokedAt()  : DateTimeImmutable|null
When the signature was removed.
getStatus()  : string
Returns one of the StoredSignatureStatus constants: pending while the enrolment link was sent but not completed, active once the signature can be applied, revoked after it was removed.
getUseCount()  : int
How many documents the signature was applied to.
parseOptionalDate()  : DateTimeImmutable|null

Properties

Methods

__construct()

public __construct(string $status[, DateTimeImmutable|null $requestedAt = null ][, string|null $adoptionMethod = null ][, DateTimeImmutable|null $enrolledAt = null ][, DateTimeImmutable|null $revokedAt = null ][, DateTimeImmutable|null $lastUsedAt = null ][, int $useCount = 0 ][, string|null $image = null ]) : mixed
Parameters
$status : string

One of the StoredSignatureStatus constants.

$requestedAt : DateTimeImmutable|null = null
$adoptionMethod : string|null = null

One of the SignatureAdoptionMethod constants.

$enrolledAt : DateTimeImmutable|null = null
$revokedAt : DateTimeImmutable|null = null
$lastUsedAt : DateTimeImmutable|null = null
$useCount : int = 0
$image : string|null = null

fromArray()

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

getAdoptionMethod()

How the recipient created the signature. Returns one of the SignatureAdoptionMethod constants, or null until the enrolment is completed.

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

getEnrolledAt()

When the recipient completed the enrolment.

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

getImage()

The signature as a PNG data URL (data:image/png;base64,...). Returned only by getRecipient() while the signature is active; null otherwise.

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

getLastUsedAt()

When the signature was last applied to a document.

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

getRequestedAt()

When the enrolment link was last sent.

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

getRevokedAt()

When the signature was removed.

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

getStatus()

Returns one of the StoredSignatureStatus constants: pending while the enrolment link was sent but not completed, active once the signature can be applied, revoked after it was removed.

public getStatus() : string
Return values
string

getUseCount()

How many documents the signature was applied to.

public getUseCount() : int
Return values
int

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