diff --git a/src/Client.php b/src/Client.php index 66d0411..4f83ade 100644 --- a/src/Client.php +++ b/src/Client.php @@ -47,6 +47,7 @@ class Client * * @param string $clientId * @param string $senderId + * @param string $apiVersion * @param array $methodKeys */ function __construct($clientId, $senderId, $apiVersion = '1.0', $methodKeys = []) @@ -103,11 +104,13 @@ public function setClientId($clientId) } /** - * Выполняет запрос к API + * Выполняет запрос к API. * * @param string $method - * @param string $parameters - * @return array + * @param array $parameters + * + * @return object + * * @throws Exception\InvalidJsonException * @throws Exception\MethodKeysNotExistsException */ @@ -141,6 +144,13 @@ public function call($method, $parameters) return $json; } + /** + * Возвращает строку для получения секретного ключа. + * + * @param $data + * + * @return string + */ private function getPostValues($data) { if (!is_array($data)) {