Updated MessageAutoDeleteTimerChanged
This commit is contained in:
parent
26162a1a7c
commit
cd84917d8f
1 changed files with 9 additions and 13 deletions
|
@ -7,10 +7,7 @@
|
||||||
|
|
||||||
class MessageAutoDeleteTimerChanged implements ObjectTypeInterface
|
class MessageAutoDeleteTimerChanged implements ObjectTypeInterface
|
||||||
{
|
{
|
||||||
/**
|
private int $message_auto_delete_time;
|
||||||
* @var int
|
|
||||||
*/
|
|
||||||
private $message_auto_delete_time;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return int
|
* @return int
|
||||||
|
@ -21,9 +18,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns an array representation of the object.
|
* @inheritDoc
|
||||||
*
|
|
||||||
* @return array
|
|
||||||
*/
|
*/
|
||||||
public function toArray(): array
|
public function toArray(): array
|
||||||
{
|
{
|
||||||
|
@ -33,15 +28,16 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructs the object from an array representation.
|
* @inheritDoc
|
||||||
*
|
|
||||||
* @param array $data
|
|
||||||
* @return MessageAutoDeleteTimerChanged
|
|
||||||
*/
|
*/
|
||||||
public static function fromArray(array $data): self
|
public static function fromArray(?array $data): ?MessageAutoDeleteTimerChanged
|
||||||
{
|
{
|
||||||
$object = new self();
|
if($data === null)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
$object = new self();
|
||||||
$object->message_auto_delete_time = $data['message_auto_delete_time'];
|
$object->message_auto_delete_time = $data['message_auto_delete_time'];
|
||||||
|
|
||||||
return $object;
|
return $object;
|
||||||
|
|
Loading…
Add table
Reference in a new issue