From 2f6a39d863bd868cd727118aac8549b11f952644 Mon Sep 17 00:00:00 2001 From: netkas Date: Fri, 4 Oct 2024 21:14:23 -0400 Subject: [PATCH] Updated ForumTopicCreated --- src/TgBotLib/Objects/ForumTopicCreated.php | 28 +++++----------------- 1 file changed, 6 insertions(+), 22 deletions(-) diff --git a/src/TgBotLib/Objects/ForumTopicCreated.php b/src/TgBotLib/Objects/ForumTopicCreated.php index 0774f1d..54d857e 100644 --- a/src/TgBotLib/Objects/ForumTopicCreated.php +++ b/src/TgBotLib/Objects/ForumTopicCreated.php @@ -7,22 +7,11 @@ class ForumTopicCreated implements ObjectTypeInterface { - /** - * @var string - */ - private $name; + private string $name; + private int $icon_color; + private ?string $icon_custom_emoji_id; /** - * @var int - */ - private $icon_color; - - /** - * @var string|null - */ - private $icon_custom_emoji_id; - - /** * Name of the topic * * @return string @@ -53,9 +42,7 @@ } /** - * Returns an array representation of the object. - * - * @return array + * @inheritDoch */ public function toArray(): array { @@ -67,12 +54,9 @@ } /** - * Constructs the object from an array representation. - * - * @param array $data - * @return ForumTopicCreated + * @inheritDoc */ - public static function fromArray(array $data): self + public static function fromArray(?array $data): ForumTopicCreated { $object = new self();