@@ -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); |
@@ -1,9 +1,9 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * An example of how to run Teebot in webhook mode. |
|
| 4 | - * |
|
| 5 | - * @author Stan Drozdov <[email protected]> |
|
| 6 | - */ |
|
| 3 | + * An example of how to run Teebot in webhook mode. |
|
| 4 | + * |
|
| 5 | + * @author Stan Drozdov <[email protected]> |
|
| 6 | + */ |
|
| 7 | 7 | define('ROOT_DIR', realpath(__DIR__)); |
| 8 | 8 | require_once ROOT_DIR . '/vendor/autoload.php'; |
| 9 | 9 | |
@@ -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 string $entityClass Entity class name 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 | { |