PostProductHandler::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 3
dl 0
loc 8
rs 10
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\Post\ProductPostInterface as ProductPostMediator;
12
13
use Ticaje\AliexpressConsumer\Application\Interfaces\PostPutProductHandlerInterface;
14
use Ticaje\AliexpressConsumer\Domain\Interfaces\Entity\RequestValidatorInterface;
15
16
/**
17
 * Class PostProductHandler
18
 * @package Ticaje\AliexpressConsumer\Application\UseCase\Handler
19
 */
20
class PostProductHandler implements PostPutProductHandlerInterface
21
{
22
    use HandlerTrait;
23
24
    private $mediator;
25
26
    private $requestValidator;
27
28
    private $verb;
29
30
    /**
31
     * PostProductHandler constructor.
32
     * @param ProductPostMediator $mediator
33
     * @param RequestValidatorInterface $requestValidator
34
     * @param string $verb
35
     */
36
    public function __construct(
37
        ProductPostMediator $mediator,
38
        RequestValidatorInterface $requestValidator,
39
        string $verb
40
    ) {
41
        $this->mediator = $mediator;
42
        $this->requestValidator = $requestValidator;
43
        $this->verb = $verb;
44
    }
45
}
46