Commit 5e923725 authored by Armando Lüscher's avatar Armando Lüscher

Just inherit repeating documentation blocks.

parent 9960f62f
......@@ -19,40 +19,15 @@ use Longman\TelegramBot\Request;
*/
class ChannelchatcreatedCommand extends Command
{
/**
* Name
*
* @var string
/**#@+
* {@inheritdoc}
*/
protected $name = 'Channelchatcreated';
/**
* Description
*
* @var string
*/
protected $description = 'Channel chat created';
/**
* Usage
*
* @var string
*/
protected $usage = '/';
/**
* Version
*
* @var string
*/
protected $version = '1.0.0';
/**
* If this command is enabled
*
* @var boolean
*/
protected $enabled = true;
/**#@-*/
/**
* Execute command
......
......@@ -21,47 +21,16 @@ use Longman\TelegramBot\Request;
*/
class ChoseninlineresultCommand extends Command
{
/**
* Name
*
* @var string
/**#@+
* {@inheritdoc}
*/
protected $name = 'choseninlineresult';
/**
* Description
*
* @var string
*/
protected $description = 'Chosen result query';
/**
* Usage
*
* @var string
*/
protected $usage = '';
/**
* Version
*
* @var string
*/
protected $version = '1.0.0';
/**
* If this command is enabled
*
* @var boolean
*/
protected $enabled = true;
/**
* If this command is public
*
* @var boolean
*/
protected $public = false;
/**#@-*/
/**
* Execute command
......
......@@ -20,47 +20,16 @@ use Longman\TelegramBot\Request;
*/
class DateCommand extends Command
{
/**
* Name
*
* @var string
/**#@+
* {@inheritdoc}
*/
protected $name = 'date';
/**
* Description
*
* @var string
*/
protected $description = 'Show date/time by location';
/**
* Usage
*
* @var string
*/
protected $usage = '/date <location>';
/**
* Version
*
* @var string
*/
protected $version = '1.2.0';
/**
* If this command is enabled
*
* @var boolean
*/
protected $enabled = true;
/**
* If this command is public
*
* @var boolean
*/
protected $public = true;
/**#@-*/
/**
* Base URL for Google Maps API
......
......@@ -19,40 +19,15 @@ use Longman\TelegramBot\Request;
*/
class DeletechatphotoCommand extends Command
{
/**
* Name
*
* @var string
/**#@+
* {@inheritdoc}
*/
protected $name = 'Deletechatphoto';
/**
* Description
*
* @var string
*/
protected $description = 'Delete chat photo';
/**
* Usage
*
* @var string
*/
protected $usage = '/';
/**
* Version
*
* @var string
*/
protected $version = '1.0.0';
/**
* If this command is enabled
*
* @var boolean
*/
protected $enabled = true;
/**#@-*/
/**
* Execute command
......
......@@ -19,47 +19,16 @@ use Longman\TelegramBot\Request;
*/
class EchoCommand extends Command
{
/**
* Name
*
* @var string
/**#@+
* {@inheritdoc}
*/
protected $name = 'echo';
/**
* Description
*
* @var string
*/
protected $description = 'Show text';
/**
* Usage
*
* @var string
*/
protected $usage = '/echo <text>';
/**
* Version
*
* @var string
*/
protected $version = '1.0.0';
/**
* If this command is enabled
*
* @var boolean
*/
protected $enabled = true;
/**
* If this command is public
*
* @var boolean
*/
protected $public = true;
/**#@-*/
/**
* Execute command
......
......@@ -19,40 +19,15 @@ use Longman\TelegramBot\Request;
*/
class GenericCommand extends Command
{
/**
* Name
*
* @var string
/**#@+
* {@inheritdoc}
*/
protected $name = 'Generic';
/**
* Description
*
* @var string
*/
protected $description = 'Handles generic commands or is executed by default when a command is not found';
/**
* Usage
*
* @var string
*/
protected $usage = '/';
/**
* Version
*
* @var string
*/
protected $version = '1.0.0';
/**
* If this command is enabled
*
* @var boolean
*/
protected $enabled = true;
/**#@-*/
/**
* Execute command
......
......@@ -19,40 +19,15 @@ use Longman\TelegramBot\Request;
*/
class GenericmessageCommand extends Command
{
/**
* Name
*
* @var string
/**#@+
* {@inheritdoc}
*/
protected $name = 'Genericmessage';
/**
* Description
*
* @var string
*/
protected $description = 'Handle generic message';
/**
* Usage
*
* @var string
*/
protected $usage = '/';
/**
* Version
*
* @var string
*/
protected $version = '1.0.0';
/**
* If this command is enabled
*
* @var boolean
*/
protected $enabled = true;
/**#@-*/
/**
* Execute command
......
......@@ -19,40 +19,15 @@ use Longman\TelegramBot\Request;
*/
class GroupchatcreatedCommand extends Command
{
/**
* Name
*
* @var string
/**#@+
* {@inheritdoc}
*/
protected $name = 'Groupchatcreated';
/**
* Description
*
* @var string
*/
protected $description = 'Group chat created';
/**
* Usage
*
* @var string
*/
protected $usage = '/';
/**
* Version
*
* @var string
*/
protected $version = '1.0.0';
/**
* If this command is enabled
*
* @var boolean
*/
protected $enabled = true;
/**#@-*/
/**
* Execute command
......
......@@ -19,47 +19,16 @@ use Longman\TelegramBot\Request;
*/
class HelpCommand extends Command
{
/**
* Name
*
* @var string
/**#@+
* {@inheritdoc}
*/
protected $name = 'help';
/**
* Description
*
* @var string
*/
protected $description = 'Show bot commands help';
/**
* Usage
*
* @var string
*/
protected $usage = '/help or /help <command>';
/**
* Version
*
* @var string
*/
protected $version = '1.0.0';
/**
* If this command is enabled
*
* @var boolean
*/
protected $enabled = true;
/**
* If this command is public
*
* @var boolean
*/
protected $public = true;
/**#@-*/
/**
* Execute command
......
......@@ -21,47 +21,16 @@ use Longman\TelegramBot\Request;
*/
class InlinequeryCommand extends Command
{
/**
* Name
*
* @var string
/**#@+
* {@inheritdoc}
*/
protected $name = 'inlinequery';
/**
* Description
*
* @var string
*/
protected $description = 'Reply to inline query';
/**
* Usage
*
* @var string
*/
protected $usage = '';
/**
* Version
*
* @var string
*/
protected $version = '1.0.0';
/**
* If this command is enabled
*
* @var boolean
*/
protected $enabled = true;
/**
* If this command is public
*
* @var boolean
*/
protected $public = false;
/**#@-*/
/**
* Execute command
......
......@@ -19,40 +19,15 @@ use Longman\TelegramBot\Request;
*/
class LeftchatparticipantCommand extends Command
{
/**
* Name
*
* @var string
/**#@+
* {@inheritdoc}
*/
protected $name = 'leftchatparticipant';
/**
* Description
*
* @var string
*/
protected $description = 'Left Chat Participant';
/**
* Usage
*
* @var string
*/
protected $usage = '/';
/**
* Version
*
* @var string
*/
protected $version = '1.0.0';
/**
* If this command is enabled
*
* @var boolean
*/
protected $enabled = true;
/**#@-*/
/**
* Execute command
......
......@@ -19,40 +19,15 @@ use Longman\TelegramBot\Request;
*/
class NewchatparticipantCommand extends Command
{
/**
* Name
*
* @var string
/**#@+
* {@inheritdoc}
*/
protected $name = 'Newchatparticipant';
/**
* Description
*
* @var string
*/
protected $description = 'New Chat Participant';
/**
* Usage
*
* @var string
*/
protected $usage = '/';
/**
* Version
*
* @var string
*/
protected $version = '1.0.0';
/**
* If this command is enabled
*
* @var boolean
*/
protected $enabled = true;
/**#@-*/
/**
* Execute command
......
......@@ -19,40 +19,15 @@ use Longman\TelegramBot\Request;
*/
class NewchattitleCommand extends Command
{
/**
* Name
*
* @var string
/**#@+
* {@inheritdoc}
*/
protected $name = 'Newchattitle';
/**
* Description
*
* @var string
*/
protected $description = 'New chat Title';
/**
* Usage
*
* @var string
*/
protected $usage = '/';
/**
* Version
*
* @var string
*/
protected $version = '1.0.0';
/**
* If this command is enabled
*
* @var boolean
*/
protected $enabled = true;
/**#@-*/
/**
* Execute command
......
......@@ -19,40 +19,15 @@ use Longman\TelegramBot\Request;
*/
class SlapCommand extends Command
{
/**
* Name
*
* @var string
/**#@+
* {@inheritdoc}
*/
protected $name = 'slap';
/**
* Description
*
* @var string
*/
protected $description = 'Slap someone with their username';
/**
* Usage
*
* @var string
*/
protected $usage = '/slap <@user>';
/**
* Version
*
* @var string
*/
protected $version = '1.0.0';
/**
* If this command is enabled
*
* @var boolean
*/
protected $enabled = true;
/**#@-*/
/**
* Execute command
......
......@@ -19,47 +19,16 @@ use Longman\TelegramBot\Request;
*/
class StartCommand extends Command
{
/**
* Name
*
* @var string
/**#@+
* {@inheritdoc}
*/
protected $name = 'start';
/**
* Description
*
* @var string
*/
protected $description = 'Start command';
/**
* Usage
*
* @var string
*/
protected $usage = '/';
/**
* Version
*
* @var string
*/
protected $version = '1.0.0';
/**
* If this command is enabled
*
* @var boolean
*/
protected $enabled = true;
/**
* If this command is public
*
* @var boolean
*/
protected $public = false;
/**#@-*/
/**
* Execute command
......
......@@ -19,40 +19,15 @@ use Longman\TelegramBot\Request;
*/
class SupergroupchatcreatedCommand extends Command
{
/**
* Name
*
* @var string
/**#@+
* {@inheritdoc}
*/
protected $name = 'Supergroupchatcreated';
/**
* Description
*
* @var string
*/
protected $description = 'Super group chat created';
/**
* Usage
*
* @var string
*/
protected $usage = '/';
/**
* Version
*
* @var string
*/
protected $version = '1.0.0';
/**
* If this command is enabled
*
* @var boolean
*/
protected $enabled = true;
/**#@-*/
/**
* Execute command
......
......@@ -19,47 +19,16 @@ use Longman\TelegramBot\Request;
*/
class WeatherCommand extends Command
{
/**
* Name
*
* @var string
/**#@+
* {@inheritdoc}
*/
protected $name = 'weather';
/**
* Description
*
* @var string
*/
protected $description = 'Show weather by location';
/**
* Usage
*
* @var string
*/
protected $usage = '/weather <location>';
/**
* Version
*
* @var string
*/
protected $version = '1.0.0';
/**
* If this command is enabled
*
* @var boolean
*/
protected $enabled = true;
/**
* If this command is public
*
* @var boolean
*/
protected $public = true;
/**#@-*/
/**
* Get weather using cURL request
......
......@@ -22,47 +22,16 @@ use Longman\TelegramBot\Request;
*/
class WhoamiCommand extends Command
{
/**
* Name
*
* @var string
/**#@+
* {@inheritdoc}
*/
protected $name = 'whoami';
/**
* Description
*
* @var string
*/
protected $description = 'Show your id, name and username';
/**
* Usage
*
* @var string
*/
protected $usage = '/whoami';
/**
* Version
*
* @var string
*/
protected $version = '1.0.0';
/**
* If this command is enabled
*
* @var boolean
*/
protected $enabled = true;
/**
* If this command is public
*
* @var boolean
*/
protected $public = true;
/**#@-*/
/**
* Execute command
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment