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\Order;
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\Order
20
 */
21
class Info implements ServiceRequestInterface, WorkerInterface
22
{
23
    use BaseDto, ServiceRequestBuilder;
24
25
    private $apiMethodName = 'aliexpress.solution.order.info.get';
0 ignored issues
show
introduced by
The private property $apiMethodName is not used, and could be removed.
Loading history...
26
27
    private $extInfoBitFlag = 16;
0 ignored issues
show
introduced by
The private property $extInfoBitFlag is not used, and could be removed.
Loading history...
28
29
    private $orderId;
0 ignored issues
show
introduced by
The private property $orderId is not used, and could be removed.
Loading history...
30
31
    /**
32
     * @inheritDoc
33
     */
34
    public function getRequest(): array
35
    {
36
        return ['param1' => json_encode($this->build())];
37
    }
38
}
39