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
$adoptionMethod
private
string|null
$adoptionMethod
One of the SignatureAdoptionMethod constants.
$enrolledAt
private
DateTimeImmutable|null
$enrolledAt
$image
private
string|null
$image
$lastUsedAt
private
DateTimeImmutable|null
$lastUsedAt
$requestedAt
private
DateTimeImmutable|null
$requestedAt
$revokedAt
private
DateTimeImmutable|null
$revokedAt
$status
private
string
$status
One of the StoredSignatureStatus constants.
$useCount
private
int
$useCount
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
selfgetAdoptionMethod()
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|nullgetEnrolledAt()
When the recipient completed the enrolment.
public
getEnrolledAt() : DateTimeImmutable|null
Return values
DateTimeImmutable|nullgetImage()
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|nullgetLastUsedAt()
When the signature was last applied to a document.
public
getLastUsedAt() : DateTimeImmutable|null
Return values
DateTimeImmutable|nullgetRequestedAt()
When the enrolment link was last sent.
public
getRequestedAt() : DateTimeImmutable|null
Return values
DateTimeImmutable|nullgetRevokedAt()
When the signature was removed.
public
getRevokedAt() : DateTimeImmutable|null
Return values
DateTimeImmutable|nullgetStatus()
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
stringgetUseCount()
How many documents the signature was applied to.
public
getUseCount() : int
Return values
intparseOptionalDate()
private
static parseOptionalDate(array<string, mixed> $payload, string $field) : DateTimeImmutable|null
Parameters
- $payload : array<string, mixed>
- $field : string