@@ -155,6 +155,7 @@ |
||
| 155 | 155 | |
| 156 | 156 | /** |
| 157 | 157 | * {@inheritdoc} |
| 158 | + * @param string $arguments |
|
| 158 | 159 | */ |
| 159 | 160 | abstract public function handle($arguments); |
| 160 | 161 | } |
@@ -23,7 +23,6 @@ |
||
| 23 | 23 | * UpdateWasReceived constructor. |
| 24 | 24 | * |
| 25 | 25 | * @param Update $update |
| 26 | - * @param Api $telegram |
|
| 27 | 26 | */ |
| 28 | 27 | public function __construct(Update $update, Bot $bot) |
| 29 | 28 | { |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | /** |
| 38 | 38 | * Returns the list of commands. |
| 39 | 39 | * |
| 40 | - * @return array |
|
| 40 | + * @return Command[] |
|
| 41 | 41 | */ |
| 42 | 42 | public function getCommands() |
| 43 | 43 | { |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | * |
| 171 | 171 | * @throws \InvalidArgumentException |
| 172 | 172 | * |
| 173 | - * @return array |
|
| 173 | + * @return string[] |
|
| 174 | 174 | */ |
| 175 | 175 | public function parseCommand($text) |
| 176 | 176 | { |
@@ -186,7 +186,7 @@ discard block |
||
| 186 | 186 | /** |
| 187 | 187 | * Handles Inbound Messages and Executes Appropriate Command. |
| 188 | 188 | * |
| 189 | - * @param $message |
|
| 189 | + * @param string $message |
|
| 190 | 190 | * @param $update |
| 191 | 191 | * |
| 192 | 192 | * @throws TelegramSDKException |
@@ -211,8 +211,8 @@ discard block |
||
| 211 | 211 | * Execute the command. |
| 212 | 212 | * |
| 213 | 213 | * @param $name |
| 214 | - * @param $arguments |
|
| 215 | - * @param $message |
|
| 214 | + * @param string $arguments |
|
| 215 | + * @param Update $message |
|
| 216 | 216 | * |
| 217 | 217 | * @return mixed |
| 218 | 218 | */ |