Updated GeneralForumTopicUnhidden

This commit is contained in:
netkas 2024-10-04 21:17:18 -04:00
parent f7a6df10df
commit c22ef6e2ff

View file

@ -10,9 +10,7 @@
// Currently, holds no information.
/**
* Returns array representation of object
*
* @return array
* @inheritDoc
*/
public function toArray(): array
{
@ -20,13 +18,15 @@
}
/**
* Constructs object from an array representation
*
* @param array $data
* @return GeneralForumTopicUnhidden
* @inheritDoc
*/
public static function fromArray(array $data): self
public static function fromArray(?array $data): ?GeneralForumTopicUnhidden
{
if($data === null)
{
return null;
}
return new self();
}
}