PDFGate's PHP SDK

EnvelopeFieldResponse
in package

Field payload returned for an envelope recipient.

Table of Contents

Properties

$checked  : bool|null
$name  : string
$source  : string|null
$timezone  : string|null
$type  : string
$userTimezone  : string|null
$userValue  : string|null
$value  : mixed|null

Methods

__construct()  : mixed
fromArray()  : self
getName()  : string
getSource()  : string|null
Where the value originated: "server" for auto-filled fields or "user" for values submitted by the recipient.
getTimezone()  : string|null
IANA timezone of the stored value. For datetime fields the value is normalized to UTC, so this is "UTC" once a value is captured.
getType()  : string
Returns one of the DocumentFieldType constants.
getUserTimezone()  : string|null
IANA timezone the recipient submitted the value in (datetime fields).
getUserValue()  : string|null
Original value as submitted by the recipient, before UTC normalization (datetime fields).
getValue()  : mixed|null
isChecked()  : bool|null
optionalString()  : string|null

Properties

Methods

__construct()

public __construct(string $name, string $type[, mixed|null $value = null ][, bool|null $checked = null ][, string|null $timezone = null ][, string|null $source = null ][, string|null $userValue = null ][, string|null $userTimezone = null ]) : mixed
Parameters
$name : string
$type : string

One of the DocumentFieldType constants.

$value : mixed|null = null
$checked : bool|null = null
$timezone : string|null = null
$source : string|null = null
$userValue : string|null = null
$userTimezone : string|null = null

fromArray()

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

getSource()

Where the value originated: "server" for auto-filled fields or "user" for values submitted by the recipient.

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

getTimezone()

IANA timezone of the stored value. For datetime fields the value is normalized to UTC, so this is "UTC" once a value is captured.

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

getType()

Returns one of the DocumentFieldType constants.

public getType() : string
Return values
string

getUserTimezone()

IANA timezone the recipient submitted the value in (datetime fields).

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

getUserValue()

Original value as submitted by the recipient, before UTC normalization (datetime fields).

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

optionalString()

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

Search results