tgbotlib/src/TgBotLib/Objects/ForumTopicClosed.php

32 lines
No EOL
764 B
PHP

<?php
namespace TgBotLib\Objects;
use TgBotLib\Interfaces\ObjectTypeInterface;
class ForumTopicClosed implements ObjectTypeInterface
{
// Note: This object represents a service message about a forum topic closed in the chat.
// Currently, holds no information.
/**
* Returns array representation of object
*
* @return array
*/
public function toArray(): array
{
return [];
}
/**
* Returns object from array
*
* @param array $data
* @return ObjectTypeInterface
*/
public static function fromArray(array $data): ObjectTypeInterface
{
return new self();
}
}