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;
* Represents the result of an ImportContacts request.
class ImportedContacts extends TdObject
{
public const TYPE_NAME = 'importedContacts';
* User identifiers of the imported contacts in the same order as they were specified in the request; 0 if the contact is not yet a registered user.
*
* @var int[]
protected array $userIds;
* The number of users that imported the corresponding contact; 0 for already registered users or if unavailable.
protected array $importerCount;
public function __construct(array $userIds, array $importerCount)
$this->userIds = $userIds;
$this->importerCount = $importerCount;
}
public static function fromArray(array $array): ImportedContacts
return new static(
$array['user_ids'],
$array['importer_count'],
);
public function typeSerialize(): array
return [
'@type' => static::TYPE_NAME,
'user_ids' => $this->userIds,
'importer_count' => $this->importerCount,
];
public function getUserIds(): array
return $this->userIds;
public function getImporterCount(): array
return $this->importerCount;