Product   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 4
c 1
b 0
f 0
dl 0
loc 20
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A schema() 0 3 1
A groups() 0 3 1
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