Product::groups()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
c 0
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 2
1
<?php
2
declare(strict_types=1);
3
4
/**
5
 * Api Class
6
 * @category    Ticaje
7
 * @author      Max Demian <[email protected]>
8
 */
9
10
namespace Ticaje\AeSdk\Api\Mediator\Get;
11
12
use Ticaje\AeSdk\Api\Interfaces\Get\ProductGetInterface;
13
use Ticaje\AeSdk\Api\Mediator\Base as ParentClass;
14
15
use Ticaje\AeSdk\Api\Traits\Mediator\ApiGetMediator;
16
use Ticaje\AeSdk\Api\Traits\Mediator\ApiMediator;
17
use Ticaje\AeSdk\Infrastructure\Interfaces\Provider\Request\RequestDtoInterface as DtoInterface;
18
use Ticaje\Contract\Patterns\Interfaces\Decorator\DecoratorInterface;
19
20
/**
21
 * Class Order
22
 * @package Ticaje\AeSdk\Api\Mediator\Get
23
 */
24
class Product extends ParentClass implements ProductGetInterface
25
{
26
    use ApiMediator, ApiGetMediator;
27
28
    /**
29
     * @inheritDoc
30
     * Fetch {resource} details from AE API.
31
     */
32
    public function schema(DtoInterface $generalRequest, array $serviceRequest): DecoratorInterface
33
    {
34
        return $this->launch($generalRequest, $serviceRequest, __FUNCTION__);
35
    }
36
37
    /**
38
     * @inheritDoc
39
     * Fetch {resource} details from AE API.
40
     */
41
    public function groups(DtoInterface $generalRequest, array $serviceRequest): DecoratorInterface
42
    {
43
        return $this->launch($generalRequest, $serviceRequest, __FUNCTION__);
44
    }
45
}
46