@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | /** |
| 96 | 96 | * Sets entity |
| 97 | 97 | * |
| 98 | - * @param EntityInterface $entity Entity object |
|
| 98 | + * @param \Teebot\Api\Entity\EntityInterface $entity Entity object |
|
| 99 | 99 | * |
| 100 | 100 | * @return EventInterface |
| 101 | 101 | */ |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | * |
| 112 | 112 | * @param string $text Message text |
| 113 | 113 | * |
| 114 | - * @return Response |
|
| 114 | + * @return \Teebot\Api\Response |
|
| 115 | 115 | */ |
| 116 | 116 | protected function sendMessage(string $text): Response |
| 117 | 117 | { |
@@ -124,9 +124,9 @@ discard block |
||
| 124 | 124 | /** |
| 125 | 125 | * Replies on the message |
| 126 | 126 | * |
| 127 | - * @param SendMessage $sendMessage Object of the SendMessage method |
|
| 127 | + * @param \Teebot\Api\Method\SendMessage $sendMessage Object of the SendMessage method |
|
| 128 | 128 | * |
| 129 | - * @return Response |
|
| 129 | + * @return \Teebot\Api\Response |
|
| 130 | 130 | */ |
| 131 | 131 | protected function reply(SendMessage $sendMessage): Response |
| 132 | 132 | { |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | * |
| 53 | 53 | * @param string $rawData Raw JSON string |
| 54 | 54 | * @param null|string $entityClass Entity class that should be instantiated with decoded JSON data |
| 55 | - * @param null|EntityInterface $parent Parent class should be set as parent for newly instantiated entity |
|
| 55 | + * @param null|Entity\EntityInterface $parent Parent class should be set as parent for newly instantiated entity |
|
| 56 | 56 | * |
| 57 | 57 | * @throws DecodingDataException |
| 58 | 58 | */ |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | * @param array $rawItemData Array with raw entity's data |
| 151 | 151 | * @param null|string $entityClass Entity class to instantiate, if not passed - default Entity class will be used. |
| 152 | 152 | * |
| 153 | - * @return EntityInterface |
|
| 153 | + * @return Entity\EntityInterface |
|
| 154 | 154 | * |
| 155 | 155 | * @throws BuildEntityException |
| 156 | 156 | */ |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | /** |
| 53 | 53 | * Initializes the Client |
| 54 | 54 | * |
| 55 | - * @param AbstractContainer $config |
|
| 55 | + * @param Configuration\AbstractContainer $config |
|
| 56 | 56 | */ |
| 57 | 57 | protected function init(AbstractContainer $config) |
| 58 | 58 | { |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | * @param int $limit Limit of the updates to get |
| 69 | 69 | * @param bool $silentMode If set to true then the events, mapped (in config or by default) to |
| 70 | 70 | * the entities in the result will not be triggered |
| 71 | - * @return Response |
|
| 71 | + * @return Api\Response |
|
| 72 | 72 | */ |
| 73 | 73 | public function getUpdates( |
| 74 | 74 | $offset = Config::DEFAULT_OFFSET, |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | * be passed manually. If not passed - php input will be used to get the data. |
| 128 | 128 | * @param bool $silentMode If set to true then the events, mapped to |
| 129 | 129 | * the entities in the result will not be triggered |
| 130 | - * @return Response |
|
| 130 | + * @return Api\Response |
|
| 131 | 131 | */ |
| 132 | 132 | public function webhook($receivedData = '', $silentMode = false): Response |
| 133 | 133 | { |
@@ -51,8 +51,8 @@ |
||
| 51 | 51 | /** |
| 52 | 52 | * Executes command |
| 53 | 53 | * |
| 54 | - * @param InputInterface $input |
|
| 55 | - * @param OutputInterface $output |
|
| 54 | + * @param \Symfony\Component\Console\Input\InputInterface $input |
|
| 55 | + * @param \Symfony\Component\Console\Output\OutputInterface $output |
|
| 56 | 56 | */ |
| 57 | 57 | protected function execute(InputInterface $input, OutputInterface $output) |
| 58 | 58 | { |
@@ -135,7 +135,7 @@ |
||
| 135 | 135 | } |
| 136 | 136 | |
| 137 | 137 | /** |
| 138 | - * @return ConfigurationInterface |
|
| 138 | + * @return \Symfony\Component\Config\Definition\ConfigurationInterface |
|
| 139 | 139 | */ |
| 140 | 140 | abstract protected function getConfiguration(): ConfigurationInterface; |
| 141 | 141 | |
@@ -48,8 +48,8 @@ discard block |
||
| 48 | 48 | protected $httpClient; |
| 49 | 49 | |
| 50 | 50 | /** |
| 51 | - * @param ContainerInterface $config |
|
| 52 | - * @param HttpClient $httpClient |
|
| 51 | + * @param \Teebot\Configuration\ContainerInterface $config |
|
| 52 | + * @param \Teebot\Api\HttpClient $httpClient |
|
| 53 | 53 | */ |
| 54 | 54 | public function __construct(ContainerInterface $config, HttpClient $httpClient) |
| 55 | 55 | { |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | /** |
| 61 | 61 | * Returns configuration container |
| 62 | 62 | * |
| 63 | - * @return ContainerInterface |
|
| 63 | + * @return \Teebot\Configuration\ContainerInterface |
|
| 64 | 64 | */ |
| 65 | 65 | public function getConfig(): ContainerInterface |
| 66 | 66 | { |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | * - Inline Query |
| 105 | 105 | * - Chosen Inline Result |
| 106 | 106 | * |
| 107 | - * @param EntityInterface $entity Update or Error entity object |
|
| 107 | + * @param \Teebot\Api\Entity\EntityInterface $entity Update or Error entity object |
|
| 108 | 108 | * |
| 109 | 109 | * @return array |
| 110 | 110 | */ |
@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | * will not be triggered otherwise process will continue until either first false returned or the very |
| 174 | 174 | * last event in the flow. |
| 175 | 175 | * |
| 176 | - * @param ChainItem $chainItem |
|
| 176 | + * @param ValueObject\ChainItem $chainItem |
|
| 177 | 177 | * |
| 178 | 178 | * @return bool |
| 179 | 179 | */ |
@@ -216,7 +216,7 @@ discard block |
||
| 216 | 216 | /** |
| 217 | 217 | * Returns event configuration item search by the data from entity |
| 218 | 218 | * |
| 219 | - * @param EntityInterface $entity Entity for which the corresponding event should be triggered |
|
| 219 | + * @param \Teebot\Api\Entity\EntityInterface $entity Entity for which the corresponding event should be triggered |
|
| 220 | 220 | * be treated as a command |
| 221 | 221 | * |
| 222 | 222 | * @return null|EventConfig |
@@ -277,9 +277,9 @@ discard block |
||
| 277 | 277 | * @param MethodInterface $method Method instance |
| 278 | 278 | * @param bool $silentMode If set to true then the events, mapped (in config or by default) |
| 279 | 279 | * to the entities in the result will not be triggered |
| 280 | - * @param EntityInterface $parent Parent entity (if any) |
|
| 280 | + * @param \Teebot\Api\Entity\EntityInterface $parent Parent entity (if any) |
|
| 281 | 281 | * |
| 282 | - * @return Response |
|
| 282 | + * @return \Teebot\Api\Response |
|
| 283 | 283 | */ |
| 284 | 284 | public function call(MethodInterface $method, $silentMode = false, EntityInterface $parent = null) |
| 285 | 285 | { |
@@ -297,7 +297,7 @@ discard block |
||
| 297 | 297 | * @param bool $silentMode If set to true then the events, mapped (in config or by default) |
| 298 | 298 | * to the entities in the result will not be triggered |
| 299 | 299 | * |
| 300 | - * @return Response |
|
| 300 | + * @return \Teebot\Api\Response |
|
| 301 | 301 | */ |
| 302 | 302 | public function getWebhookResponse($data, $silentMode = false) |
| 303 | 303 | { |
@@ -309,11 +309,11 @@ discard block |
||
| 309 | 309 | /** |
| 310 | 310 | * Processes entities from the response object if not in silent mode or error is received. |
| 311 | 311 | * |
| 312 | - * @param Response $response Response object which includes entities |
|
| 312 | + * @param \Teebot\Api\Response $response Response object which includes entities |
|
| 313 | 313 | * @param bool $silentMode If set to true then the events, mapped (in config or by default) |
| 314 | 314 | * to the entities in the result will not be triggered |
| 315 | 315 | * |
| 316 | - * @return Response |
|
| 316 | + * @return \Teebot\Api\Response |
|
| 317 | 317 | */ |
| 318 | 318 | protected function processResponse(Response $response, $silentMode = false) |
| 319 | 319 | { |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | } |
| 159 | 159 | |
| 160 | 160 | /** |
| 161 | - * @return array |
|
| 161 | + * @return MessageEntityArray |
|
| 162 | 162 | */ |
| 163 | 163 | public function getEntities() |
| 164 | 164 | { |
@@ -347,7 +347,7 @@ discard block |
||
| 347 | 347 | } |
| 348 | 348 | |
| 349 | 349 | /** |
| 350 | - * @return null|Contact|Document|Location|Sticker|Video|Voice |
|
| 350 | + * @return null|EntityInterface |
|
| 351 | 351 | */ |
| 352 | 352 | public function getMessageTypeEntity() |
| 353 | 353 | { |