From feb1e4ad0d02adae2a713fd2f75b5d028573ccf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D0=B0=D0=B2=D0=B5=D0=BB?= Date: Tue, 29 Sep 2020 15:19:44 +0300 Subject: [PATCH] fix for annotations --- src/Interfaces/RequestFactoryInterface.php | 2 ++ src/TopClient/Client.php | 1 + tests/RetailCrm/Tests/TopClient/ClientTest.php | 3 +-- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Interfaces/RequestFactoryInterface.php b/src/Interfaces/RequestFactoryInterface.php index cd83409..54922aa 100644 --- a/src/Interfaces/RequestFactoryInterface.php +++ b/src/Interfaces/RequestFactoryInterface.php @@ -34,6 +34,8 @@ interface RequestFactoryInterface * @param \RetailCrm\Interfaces\AuthenticatorInterface $authenticator * * @return RequestInterface + * @throws \RetailCrm\Component\Exception\FactoryException + * @throws \RetailCrm\Component\Exception\ValidationException */ public function fromModel( BaseRequest $request, diff --git a/src/TopClient/Client.php b/src/TopClient/Client.php index 2e12d77..2a3857a 100644 --- a/src/TopClient/Client.php +++ b/src/TopClient/Client.php @@ -142,6 +142,7 @@ class Client * @return void * @throws \Psr\Http\Client\ClientExceptionInterface * @throws \RetailCrm\Component\Exception\ValidationException + * @throws \RetailCrm\Component\Exception\FactoryException */ public function sendRequest(BaseRequest $request) { diff --git a/tests/RetailCrm/Tests/TopClient/ClientTest.php b/tests/RetailCrm/Tests/TopClient/ClientTest.php index ad5a3fb..a4d8235 100644 --- a/tests/RetailCrm/Tests/TopClient/ClientTest.php +++ b/tests/RetailCrm/Tests/TopClient/ClientTest.php @@ -15,7 +15,6 @@ namespace RetailCrm\Tests\TopClient; use RetailCrm\Builder\ClientBuilder; use RetailCrm\Component\AppData; use RetailCrm\Component\Authenticator\TokenAuthenticator; -use RetailCrm\Component\Exception\ValidationException; use RetailCrm\Model\Request\HttpDnsGetRequest; use RetailCrm\Test\TestCase; @@ -34,7 +33,7 @@ class ClientTest extends TestCase public function testClientRequest() { self::markTestSkipped('Not implemented yet'); - + $client = ClientBuilder::create() ->setContainer($this->getContainer()) ->setAppData(new AppData(AppData::OVERSEAS_ENDPOINT, 'appKey', 'appSecret'))