tgbotlib/src/TgBotLib/Objects/ForumTopicReopened.php

34 lines
764 B
PHP
Raw Normal View History

<?php
2024-10-02 00:18:12 -04:00
namespace TgBotLib\Objects;
use TgBotLib\Interfaces\ObjectTypeInterface;
class ForumTopicReopened implements ObjectTypeInterface
{
// Note: This object represents a service message about a forum topic reopened in the chat.
// Currently, holds no information.
/**
* Returns array representation of object
*
* @return array
*/
public function toArray(): array
{
return [];
}
/**
2024-10-04 21:16:13 -04:00
* @inheritDoc
*/
2024-10-04 21:16:13 -04:00
public static function fromArray(?array $data): ?ForumTopicReopened
{
2024-10-04 21:16:13 -04:00
if($data === null)
{
return null;
}
return new self();
}
}