@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | |
125 | 125 | /** |
126 | 126 | * \brief Get the text of the message, if set (for updates of type "message"). |
127 | - * @return Text of the message, empty string if not set. |
|
127 | + * @return string of the message, empty string if not set. |
|
128 | 128 | */ |
129 | 129 | public function getMessageText() : string { |
130 | 130 | |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | |
141 | 141 | /** |
142 | 142 | * \brief Get the data of callback query, if set (for updates of type "callback_query"). |
143 | - * @return Data of the callback query, empty string if not set. |
|
143 | + * @return string of the callback query, empty string if not set. |
|
144 | 144 | */ |
145 | 145 | public function getCallbackData() : string { |
146 | 146 | |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | |
157 | 157 | /** |
158 | 158 | * \brief Get the query received from the inline query (for updates of type "inline_query"). |
159 | - * @return The query sent by the user, throw exception if the current update is not an inline query. |
|
159 | + * @return string query sent by the user, throw exception if the current update is not an inline query. |
|
160 | 160 | */ |
161 | 161 | public function getInlineQuery() : string { |
162 | 162 | |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | * \details Set $chat_id for each update, $text, $data and $query are set for each update that contains them. |
213 | 213 | * It also calls commands for each updates, before process methods. |
214 | 214 | * @param $update Reference to the update received. |
215 | - * @return The id of the update processed. |
|
215 | + * @return integer id of the update processed. |
|
216 | 216 | */ |
217 | 217 | public function processUpdate(array $update) : int { |
218 | 218 | |
@@ -771,7 +771,7 @@ discard block |
||
771 | 771 | * \brief Get current user language from redis, and set it in language. |
772 | 772 | * \details Using redis database we get language stored and the value does not expires. |
773 | 773 | * @param $default_language <i>Optional</i>. Default language to return in case of errors. |
774 | - * @return Language for the current user, $default_language on errors. |
|
774 | + * @return string for the current user, $default_language on errors. |
|
775 | 775 | */ |
776 | 776 | public function getLanguageRedis($default_language = 'en') : string { |
777 | 777 | |
@@ -807,7 +807,7 @@ discard block |
||
807 | 807 | * It also change $language parameter of the bot to the language returned. |
808 | 808 | * @param $default_language <i>Optional</i>. Default language to return in case of errors. |
809 | 809 | * @param $expiring_time <i>Optional</i>. Set the expiring time for the language on redis each time it is took from the sql database. |
810 | - * @return Language for the current user, $default_language on errors. |
|
810 | + * @return string for the current user, $default_language on errors. |
|
811 | 811 | */ |
812 | 812 | public function getLanguageRedisAsCache($default_language = 'en', $expiring_time = '86400') : string { |
813 | 813 | |
@@ -1008,7 +1008,7 @@ discard block |
||
1008 | 1008 | * \brief Get current user status from redis and set it in status variable. |
1009 | 1009 | * \details Throw exception if redis connection is missing. |
1010 | 1010 | * @param $default_status <i>Optional</i>. The default status to return in case there is no status for the current user. |
1011 | - * @return The status for the current user, $default_status if missing. |
|
1011 | + * @return integer status for the current user, $default_status if missing. |
|
1012 | 1012 | */ |
1013 | 1013 | public function getStatus(int $default_status = -1) : int { |
1014 | 1014 | |
@@ -1055,7 +1055,7 @@ discard block |
||
1055 | 1055 | /** \brief Add a user to the database. |
1056 | 1056 | * \details Add a user to the database in Bot::$user_table table and Bot::$id_column column using Bot::$pdo connection. |
1057 | 1057 | * @param $chat_id chat_id of the user to add. |
1058 | - * @return True on success. |
|
1058 | + * @return boolean on success. |
|
1059 | 1059 | */ |
1060 | 1060 | public function addUser($chat_id) : bool { |
1061 | 1061 |