1
0
mirror of synced 2024-11-25 14:26:05 +03:00

fix for annotations

This commit is contained in:
Pavel 2020-09-29 15:19:44 +03:00
parent c3ae204c32
commit feb1e4ad0d
3 changed files with 4 additions and 2 deletions

View File

@ -34,6 +34,8 @@ interface RequestFactoryInterface
* @param \RetailCrm\Interfaces\AuthenticatorInterface $authenticator * @param \RetailCrm\Interfaces\AuthenticatorInterface $authenticator
* *
* @return RequestInterface * @return RequestInterface
* @throws \RetailCrm\Component\Exception\FactoryException
* @throws \RetailCrm\Component\Exception\ValidationException
*/ */
public function fromModel( public function fromModel(
BaseRequest $request, BaseRequest $request,

View File

@ -142,6 +142,7 @@ class Client
* @return void * @return void
* @throws \Psr\Http\Client\ClientExceptionInterface * @throws \Psr\Http\Client\ClientExceptionInterface
* @throws \RetailCrm\Component\Exception\ValidationException * @throws \RetailCrm\Component\Exception\ValidationException
* @throws \RetailCrm\Component\Exception\FactoryException
*/ */
public function sendRequest(BaseRequest $request) public function sendRequest(BaseRequest $request)
{ {

View File

@ -15,7 +15,6 @@ namespace RetailCrm\Tests\TopClient;
use RetailCrm\Builder\ClientBuilder; use RetailCrm\Builder\ClientBuilder;
use RetailCrm\Component\AppData; use RetailCrm\Component\AppData;
use RetailCrm\Component\Authenticator\TokenAuthenticator; use RetailCrm\Component\Authenticator\TokenAuthenticator;
use RetailCrm\Component\Exception\ValidationException;
use RetailCrm\Model\Request\HttpDnsGetRequest; use RetailCrm\Model\Request\HttpDnsGetRequest;
use RetailCrm\Test\TestCase; use RetailCrm\Test\TestCase;
@ -34,7 +33,7 @@ class ClientTest extends TestCase
public function testClientRequest() public function testClientRequest()
{ {
self::markTestSkipped('Not implemented yet'); self::markTestSkipped('Not implemented yet');
$client = ClientBuilder::create() $client = ClientBuilder::create()
->setContainer($this->getContainer()) ->setContainer($this->getContainer())
->setAppData(new AppData(AppData::OVERSEAS_ENDPOINT, 'appKey', 'appSecret')) ->setAppData(new AppData(AppData::OVERSEAS_ENDPOINT, 'appKey', 'appSecret'))