PutProductHandler   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 8
c 1
b 0
f 0
dl 0
loc 24
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
1
<?php
2
declare(strict_types=1);
3
4
/**
5
 * Application Class
6
 * @author Max Demian <[email protected]>
7
 */
8
9
namespace Ticaje\AliexpressConsumer\Application\UseCase\Handler;
10
11
use Ticaje\AeSdk\Api\Interfaces\Put\ProductPutInterface as ProductPutMediator;
12
13
use Ticaje\AliexpressConsumer\Application\Interfaces\PostPutProductHandlerInterface;
14
use Ticaje\AliexpressConsumer\Domain\Interfaces\Entity\RequestValidatorInterface;
15
16
/**
17
 * Class PutProductHandler
18
 * @package Ticaje\AliexpressConsumer\Application\UseCase\Handler
19
 */
20
class PutProductHandler implements PostPutProductHandlerInterface
21
{
22
    use HandlerTrait;
23
24
    private $mediator;
25
26
    private $requestValidator;
27
28
    private $verb;
29
30
    /**
31
     * PutProductHandler constructor.
32
     * @param ProductPutMediator $mediator
33
     * @param RequestValidatorInterface $requestValidator
34
     * @param string $verb
35
     */
36
    public function __construct(
37
        ProductPutMediator $mediator,
38
        RequestValidatorInterface $requestValidator,
39
        string $verb
40
    ) {
41
        $this->mediator = $mediator;
42
        $this->requestValidator = $requestValidator;
43
        $this->verb = $verb;
44
    }
45
}
46