Moved SentWebAppMessage.php
This commit is contained in:
parent
aa80be21d0
commit
b1e9753b58
1 changed files with 1 additions and 1 deletions
|
@ -1,51 +0,0 @@
|
|||
<?php
|
||||
|
||||
/** @noinspection PhpUnused */
|
||||
/** @noinspection PhpMissingFieldTypeInspection */
|
||||
|
||||
namespace TgBotLib\Objects;
|
||||
|
||||
use TgBotLib\Interfaces\ObjectTypeInterface;
|
||||
|
||||
class SentWebAppMessage implements ObjectTypeInterface
|
||||
{
|
||||
/**
|
||||
* @var string|null
|
||||
*/
|
||||
private $inline_message_id;
|
||||
|
||||
/**
|
||||
* @return string|null
|
||||
*/
|
||||
public function getInlineMessageId(): ?string
|
||||
{
|
||||
return $this->inline_message_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns an array representation of the object
|
||||
*
|
||||
* @return null[]|string[]
|
||||
*/
|
||||
public function toArray(): array
|
||||
{
|
||||
return [
|
||||
'inline_message_id' => $this->inline_message_id,
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs object from an array representation
|
||||
*
|
||||
* @param array $data
|
||||
* @return SentWebAppMessage
|
||||
*/
|
||||
public static function fromArray(array $data): SentWebAppMessage
|
||||
{
|
||||
$object = new self();
|
||||
|
||||
$object->inline_message_id = $data['inline_message_id'] ?? null;
|
||||
|
||||
return $object;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue