DriverLicenseV1Document
extends Prediction
in package
Driver License API version 1.0 document data.
Table of Contents
Properties
- $category : StringField
- $countryCode : StringField
- $dateOfBirth : DateField
- $ddNumber : StringField
- $expiryDate : DateField
- $firstName : StringField
- $id : StringField
- $issuedDate : DateField
- $issuingAuthority : StringField
- $lastName : StringField
- $mrz : StringField
- $placeOfBirth : StringField
- $state : StringField
Methods
- __construct() : mixed
- __toString() : string
Properties
$category
public
StringField
$category
The category or class of the driver license.
$countryCode
public
StringField
$countryCode
The alpha-3 ISO 3166 code of the country where the driver license was issued.
$dateOfBirth
public
DateField
$dateOfBirth
The date of birth of the driver license holder.
$ddNumber
public
StringField
$ddNumber
The DD number of the driver license.
$expiryDate
public
DateField
$expiryDate
The expiry date of the driver license.
$firstName
public
StringField
$firstName
The first name of the driver license holder.
$id
public
StringField
$id
The unique identifier of the driver license.
$issuedDate
public
DateField
$issuedDate
The date when the driver license was issued.
$issuingAuthority
public
StringField
$issuingAuthority
The authority that issued the driver license.
$lastName
public
StringField
$lastName
The last name of the driver license holder.
$mrz
public
StringField
$mrz
The Machine Readable Zone (MRZ) of the driver license.
$placeOfBirth
public
StringField
$placeOfBirth
The place of birth of the driver license holder.
$state
public
StringField
$state
Second part of the ISO 3166-2 code, consisting of two letters indicating the US State.
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.