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;
* Removes a user from the blacklist.
class UnblockUser extends TdFunction
{
public const TYPE_NAME = 'unblockUser';
* User identifier.
*
* @var int
protected int $userId;
public function __construct(int $userId)
$this->userId = $userId;
}
public static function fromArray(array $array): UnblockUser
return new static(
$array['user_id'],
);
public function typeSerialize(): array
return [
'@type' => static::TYPE_NAME,
'user_id' => $this->userId,
];
public function getUserId(): int
return $this->userId;