@@ -193,7 +193,7 @@ |
||
193 | 193 | * @param bool $isCommand Boolean flag which indicates that passed entity should |
194 | 194 | * be treated as a command |
195 | 195 | * |
196 | - * @return bool |
|
196 | + * @return boolean|null |
|
197 | 197 | */ |
198 | 198 | protected function triggerEvent(AbstractEntity $entity, AbstractEntity $parent = null, $isCommand = false) |
199 | 199 | { |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | } |
43 | 43 | |
44 | 44 | /** |
45 | - * @return mixed |
|
45 | + * @return string |
|
46 | 46 | */ |
47 | 47 | public function getName() |
48 | 48 | { |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | } |
51 | 51 | |
52 | 52 | /** |
53 | - * @return mixed |
|
53 | + * @return string |
|
54 | 54 | */ |
55 | 55 | public function getArgs() |
56 | 56 | { |
@@ -76,6 +76,9 @@ discard block |
||
76 | 76 | return $command; |
77 | 77 | } |
78 | 78 | |
79 | + /** |
|
80 | + * @param string $command |
|
81 | + */ |
|
79 | 82 | protected function getArgsFromText($command, $text) |
80 | 83 | { |
81 | 84 | $length = strlen(static::PREFIX . $command); |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | } |
52 | 52 | |
53 | 53 | /** |
54 | - * @param mixed $video_url |
|
54 | + * @param string $video_url |
|
55 | 55 | * |
56 | 56 | * @return $this |
57 | 57 | */ |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | } |
114 | 114 | |
115 | 115 | /** |
116 | - * @param mixed $message_text |
|
116 | + * @param string $message_text |
|
117 | 117 | * |
118 | 118 | * @return $this |
119 | 119 | */ |
@@ -315,7 +315,7 @@ |
||
315 | 315 | } |
316 | 316 | |
317 | 317 | /** |
318 | - * @return PhotoSizeArray |
|
318 | + * @return PhotoSize |
|
319 | 319 | */ |
320 | 320 | public function getPhoto() |
321 | 321 | { |
@@ -14,6 +14,9 @@ |
||
14 | 14 | |
15 | 15 | class Output |
16 | 16 | { |
17 | + /** |
|
18 | + * @param \Exception $e |
|
19 | + */ |
|
17 | 20 | public static function log($e) |
18 | 21 | { |
19 | 22 | $logFile = Executor::getInstance()->getConfig()->getLogFile(); |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | * @param AbstractMethod $method Teebot method's instance to get arguments from |
56 | 56 | * @param null|AbstractEntity $parent Parent entity that initiated the Request |
57 | 57 | * |
58 | - * @return null|Response |
|
58 | + * @return Response |
|
59 | 59 | */ |
60 | 60 | public function exec(AbstractMethod $method, $parent = null) |
61 | 61 | { |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | * @param AbstractEntity $entityClass Entity that should be passed to Response constructor |
117 | 117 | * @param null|AbstractEntity $parent Parent entity |
118 | 118 | * |
119 | - * @return null|Response |
|
119 | + * @return Response |
|
120 | 120 | */ |
121 | 121 | public function createResponseFromData($receivedData, $entityClass, $parent = null) |
122 | 122 | { |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | * Returns url for request to Telegram's bot API |
136 | 136 | * |
137 | 137 | * @param string $methodName The name of Telegram's method to query |
138 | - * @param null|array $args Array of arguments to path to the method via GET string |
|
138 | + * @param string $args Array of arguments to path to the method via GET string |
|
139 | 139 | * |
140 | 140 | * @return string |
141 | 141 | */ |