for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This phpFile is auto-generated.
*/
declare(strict_types=1);
namespace AurimasNiekis\TdLibSchema;
* A Telegram Passport element to be saved containing the user's passport.
class InputPassportElementPassport extends InputPassportElement
{
public const TYPE_NAME = 'inputPassportElementPassport';
* The passport to be saved.
*
* @var InputIdentityDocument
protected InputIdentityDocument $passport;
public function __construct(InputIdentityDocument $passport)
parent::__construct();
$this->passport = $passport;
}
public static function fromArray(array $array): InputPassportElementPassport
return new static(
TdSchemaRegistry::fromArray($array['passport']),
);
public function typeSerialize(): array
return [
'@type' => static::TYPE_NAME,
'passport' => $this->passport->typeSerialize(),
];
public function getPassport(): InputIdentityDocument
return $this->passport;