Info::getRequest()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
declare(strict_types=1);
3
4
/**
5
 * Request Provider Class
6
 * @category    Ticaje
7
 * @author      Max Demian <[email protected]>
8
 */
9
10
namespace Ticaje\AeSdk\Domain\Endpoint\Solution\Sku\Attribute;
11
12
use Ticaje\Contract\Patterns\Interfaces\Pool\WorkerInterface;
13
use Ticaje\Contract\Traits\BaseDto;
14
use Ticaje\AeSdk\Infrastructure\Builder\ServiceRequestBuilder;
15
use Ticaje\AeSdk\Domain\Interfaces\Request\ServiceRequestInterface;
16
17
/**
18
 * Class Info
19
 * @package Ticaje\AeSdk\Domain\Endpoint\Solution\Sku\Attribute\Info
20
 */
21
class Info implements ServiceRequestInterface, WorkerInterface
22
{
23
    use BaseDto, ServiceRequestBuilder;
24
25
    private $apiMethodName = 'aliexpress.solution.sku.attribute.query';
0 ignored issues
show
introduced by
The private property $apiMethodName is not used, and could be removed.
Loading history...
26
27
    private $aliexpressCategoryId;
0 ignored issues
show
introduced by
The private property $aliexpressCategoryId is not used, and could be removed.
Loading history...
28
29
    private $categoryId;
0 ignored issues
show
introduced by
The private property $categoryId is not used, and could be removed.
Loading history...
30
31
    public function getRequest(): array
32
    {
33
        return ['query_sku_attribute_info_request' => json_encode($this->build())];
34
    }
35
}
36