Moved Objects

This commit is contained in:
netkas 2024-10-02 00:18:12 -04:00
parent 848a2a78e3
commit 6c67e97a4b
167 changed files with 368 additions and 373 deletions

View file

@ -0,0 +1,50 @@
<?php
/** @noinspection PhpMissingFieldTypeInspection */
namespace TgBotLib\Objects;
use TgBotLib\Interfaces\ObjectTypeInterface;
class MessageAutoDeleteTimerChanged implements ObjectTypeInterface
{
/**
* @var int
*/
private $message_auto_delete_time;
/**
* @return int
*/
public function getMessageAutoDeleteTime(): int
{
return $this->message_auto_delete_time;
}
/**
* Returns an array representation of the object.
*
* @return array
*/
public function toArray(): array
{
return [
'message_auto_delete_time' => $this->message_auto_delete_time,
];
}
/**
* Constructs the object from an array representation.
*
* @param array $data
* @return MessageAutoDeleteTimerChanged
*/
public static function fromArray(array $data): self
{
$object = new self();
$object->message_auto_delete_time = $data['message_auto_delete_time'];
return $object;
}
}