Updated VideoChatStarted.php

This commit is contained in:
netkas 2024-10-06 16:05:05 -04:00
parent af6cab91f7
commit a04140dc8f

View file

@ -10,9 +10,7 @@
// Currently, holds no information. // Currently, holds no information.
/** /**
* Returns an array representation of the 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 VideoChatStarted
*/ */
public static function fromArray(array $data): self public static function fromArray(?array $data): ?VideoChatStarted
{ {
if($data === null)
{
return null;
}
return new self(); return new self();
} }
} }