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 background from the list of installed backgrounds.
class RemoveBackground extends TdFunction
{
public const TYPE_NAME = 'removeBackground';
* The background identifier.
*
* @var string
protected string $backgroundId;
public function __construct(string $backgroundId)
$this->backgroundId = $backgroundId;
}
public static function fromArray(array $array): RemoveBackground
return new static(
$array['background_id'],
);
public function typeSerialize(): array
return [
'@type' => static::TYPE_NAME,
'background_id' => $this->backgroundId,
];
public function getBackgroundId(): string
return $this->backgroundId;