class PassportElementErrorDataField implements PassportElementErrorInterface

Represents an issue in one of the data fields that was provided by the user. The error is considered resolved when the field's value changes.

Methods

__construct(string $source, string $type, string $field_name, string $data_hash, string $message)

No description

string
getSource()

Error source, must be data.

string
getType()

The section of the user's Telegram Passport which has the error, one of “personal_details”, “passport”, “driver_license”, “identity_card”, “internal_passport”, “address”.

string
getFieldName()

Name of the data field which has the error.

string
getDataHash()

Base64-encoded data hash.

string
getMessage()

Error message.

Details

at line 17
__construct(string $source, string $type, string $field_name, string $data_hash, string $message)

No description

Parameters

string $source
string $type
string $field_name
string $data_hash
string $message

at line 29
string getSource()

Error source, must be data.

Return Value

string

at line 37
string getType()

The section of the user's Telegram Passport which has the error, one of “personal_details”, “passport”, “driver_license”, “identity_card”, “internal_passport”, “address”.

Return Value

string

at line 45
string getFieldName()

Name of the data field which has the error.

Return Value

string

at line 53
string getDataHash()

Base64-encoded data hash.

Return Value

string

at line 61
string getMessage()

Error message.

Return Value

string