Added \TgBotLib\Bot
This commit is contained in:
parent
bb2f2b34b5
commit
d3e98b1f23
1 changed files with 48 additions and 0 deletions
48
src/TgBotLib/Bot.php
Normal file
48
src/TgBotLib/Bot.php
Normal file
|
@ -0,0 +1,48 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace TgBotLib;
|
||||||
|
|
||||||
|
class Bot
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* The bot's username
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
private $username;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The bot's token
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
private $token;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Public Constructor
|
||||||
|
*
|
||||||
|
* @param string $username
|
||||||
|
* @param string $token
|
||||||
|
*/
|
||||||
|
public function __construct(string $username, string $token)
|
||||||
|
{
|
||||||
|
$this->username = $username;
|
||||||
|
$this->token = $token;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function getUsername(): string
|
||||||
|
{
|
||||||
|
return $this->username;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function getToken(): string
|
||||||
|
{
|
||||||
|
return $this->token;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue