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 PHPTdGram\Schema;
* A personal document to be saved to Telegram Passport.
class InputPersonalDocument extends TdObject
{
public const TYPE_NAME = 'inputPersonalDocument';
* List of files containing the pages of the document.
*
* @var InputFile[]
protected array $files;
* List of files containing a certified English translation of the document.
protected array $translation;
public function __construct(array $files, array $translation)
$this->files = $files;
$this->translation = $translation;
}
public static function fromArray(array $array): InputPersonalDocument
return new static(
array_map(fn ($x) => TdSchemaRegistry::fromArray($x), $array['files']),
array_map(fn ($x) => TdSchemaRegistry::fromArray($x), $array['translation']),
);
public function typeSerialize(): array
return [
'@type' => static::TYPE_NAME,
array_map(fn ($x) => $x->typeSerialize(), $this->files),
array_map(fn ($x) => $x->typeSerialize(), $this->translation),
];
public function getFiles(): array
return $this->files;
public function getTranslation(): array
return $this->translation;