| Total Complexity | 5 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class SetSupergroupStickerSet extends TdFunction |
||
| 15 | { |
||
| 16 | public const TYPE_NAME = 'setSupergroupStickerSet'; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Identifier of the supergroup. |
||
| 20 | */ |
||
| 21 | protected int $supergroupId; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * New value of the supergroup sticker set identifier. Use 0 to remove the supergroup sticker set. |
||
| 25 | */ |
||
| 26 | protected string $stickerSetId; |
||
| 27 | |||
| 28 | public function __construct(int $supergroupId, string $stickerSetId) |
||
| 29 | { |
||
| 30 | $this->supergroupId = $supergroupId; |
||
| 31 | $this->stickerSetId = $stickerSetId; |
||
| 32 | } |
||
| 33 | |||
| 34 | public static function fromArray(array $array): SetSupergroupStickerSet |
||
| 35 | { |
||
| 36 | return new static( |
||
| 37 | $array['supergroup_id'], |
||
| 38 | $array['sticker_set_id'], |
||
| 39 | ); |
||
| 40 | } |
||
| 41 | |||
| 42 | public function typeSerialize(): array |
||
| 48 | ]; |
||
| 49 | } |
||
| 50 | |||
| 51 | public function getSupergroupId(): int |
||
| 52 | { |
||
| 53 | return $this->supergroupId; |
||
| 54 | } |
||
| 55 | |||
| 56 | public function getStickerSetId(): string |
||
| 59 | } |
||
| 60 | } |
||
| 61 |