Updated ForumTopicCreated
This commit is contained in:
parent
6aa95f305a
commit
2f6a39d863
1 changed files with 6 additions and 22 deletions
|
@ -7,22 +7,11 @@
|
||||||
|
|
||||||
class ForumTopicCreated implements ObjectTypeInterface
|
class ForumTopicCreated implements ObjectTypeInterface
|
||||||
{
|
{
|
||||||
/**
|
private string $name;
|
||||||
* @var string
|
private int $icon_color;
|
||||||
*/
|
private ?string $icon_custom_emoji_id;
|
||||||
private $name;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var int
|
|
||||||
*/
|
|
||||||
private $icon_color;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @var string|null
|
|
||||||
*/
|
|
||||||
private $icon_custom_emoji_id;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Name of the topic
|
* Name of the topic
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
|
@ -53,9 +42,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns an array representation of the object.
|
* @inheritDoch
|
||||||
*
|
|
||||||
* @return array
|
|
||||||
*/
|
*/
|
||||||
public function toArray(): array
|
public function toArray(): array
|
||||||
{
|
{
|
||||||
|
@ -67,12 +54,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs the object from an array representation.
|
* @inheritDoc
|
||||||
*
|
|
||||||
* @param array $data
|
|
||||||
* @return ForumTopicCreated
|
|
||||||
*/
|
*/
|
||||||
public static function fromArray(array $data): self
|
public static function fromArray(?array $data): ForumTopicCreated
|
||||||
{
|
{
|
||||||
$object = new self();
|
$object = new self();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue