Updated GeneralForumTopicHidden
This commit is contained in:
parent
89e3f9c575
commit
f7a6df10df
1 changed files with 8 additions and 8 deletions
|
@ -10,9 +10,7 @@
|
||||||
// Currently, holds no information.
|
// Currently, holds no information.
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns array representation of object
|
* @inheritDoc
|
||||||
*
|
|
||||||
* @return array
|
|
||||||
*/
|
*/
|
||||||
public function toArray(): array
|
public function toArray(): array
|
||||||
{
|
{
|
||||||
|
@ -20,13 +18,15 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs object from an array representation
|
* @inheritDoc
|
||||||
*
|
|
||||||
* @param array $data
|
|
||||||
* @return GeneralForumTopicHidden
|
|
||||||
*/
|
*/
|
||||||
public static function fromArray(array $data): self
|
public static function fromArray(?array $data): ?GeneralForumTopicHidden
|
||||||
{
|
{
|
||||||
|
if($data === null)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
return new self();
|
return new self();
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue