Added \TgBotLib\Objects > CallbackGame
This commit is contained in:
parent
2beb260eb3
commit
44d7bd679c
1 changed files with 31 additions and 0 deletions
31
src/TgBotLib/Objects/CallbackGame.php
Normal file
31
src/TgBotLib/Objects/CallbackGame.php
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace TgBotLib\Objects;
|
||||||
|
|
||||||
|
use TgBotLib\Interfaces\ObjectTypeInterface;
|
||||||
|
|
||||||
|
class CallbackGame implements ObjectTypeInterface
|
||||||
|
{
|
||||||
|
// Note: A placeholder, currently holds no information. Use BotFather to set up your game.
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns an array representation of the object.
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function toArray(): array
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs an object from an array representation.
|
||||||
|
*
|
||||||
|
* @param array $data
|
||||||
|
* @return ObjectTypeInterface
|
||||||
|
*/
|
||||||
|
public static function fromArray(array $data): ObjectTypeInterface
|
||||||
|
{
|
||||||
|
return new self();
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue