PassportV1Document
extends Prediction
in package
Passport API version 1.1 document data.
Table of Contents
Properties
- $birthDate : DateField
- $birthPlace : StringField
- $country : StringField
- $expiryDate : DateField
- $gender : StringField
- $givenNames : array<string|int, StringField>
- $idNumber : StringField
- $issuanceDate : DateField
- $mrz1 : StringField
- $mrz2 : StringField
- $surname : StringField
Methods
- __construct() : mixed
- __toString() : string
Properties
$birthDate
public
DateField
$birthDate
The date of birth of the passport holder.
$birthPlace
public
StringField
$birthPlace
The place of birth of the passport holder.
$country
public
StringField
$country
The country's 3 letter code (ISO 3166-1 alpha-3).
$expiryDate
public
DateField
$expiryDate
The expiry date of the passport.
$gender
public
StringField
$gender
The gender of the passport holder.
$givenNames
public
array<string|int, StringField>
$givenNames
The given name(s) of the passport holder.
$idNumber
public
StringField
$idNumber
The passport's identification number.
$issuanceDate
public
DateField
$issuanceDate
The date the passport was issued.
$mrz1
public
StringField
$mrz1
Machine Readable Zone, first line
$mrz2
public
StringField
$mrz2
Machine Readable Zone, second line
$surname
public
StringField
$surname
The surname of the passport holder.
Methods
__construct()
public
__construct(array<string|int, mixed> $rawPrediction[, int|null $pageId = null ]) : mixed
Parameters
- $rawPrediction : array<string|int, mixed>
-
Raw prediction from HTTP response.
- $pageId : int|null = null
-
Page number for multi pages document.
Tags
__toString()
public
__toString() : string
Return values
string —String representation.