UseCaseCommand   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getRequest() 0 3 1
A getCredentials() 0 3 1
A setCredentials() 0 4 1
A setRequest() 0 4 1
1
<?php
2
3
/**
4
 * Application Class
5
 * @author Max Demian <[email protected]>
6
 */
7
8
declare(strict_types=1);
9
10
namespace Ticaje\AliexpressConsumer\Application\UseCase\Command;
11
12
use Ticaje\AeSdk\Infrastructure\Interfaces\Provider\Request\RequestDtoInterface;
13
use Ticaje\AliexpressConsumer\Application\Interfaces\UseCaseCommandInterface;
14
15
/**
16
 * Class UseCaseCommand
17
 * @package Ticaje\AliexpressConsumer\Application\UseCase\Command
18
 */
19
class UseCaseCommand implements UseCaseCommandInterface
20
{
21
    private $request;
22
23
    private $credentials;
24
25
    public function setRequest(RequestDtoInterface $dto): UseCaseCommandInterface
26
    {
27
        $this->request = $dto;
28
        return $this;
29
    }
30
31
    public function setCredentials(RequestDtoInterface $dto): UseCaseCommandInterface
32
    {
33
        $this->credentials = $dto;
34
        return $this;
35
    }
36
37
    public function getRequest(): RequestDtoInterface
38
    {
39
        return $this->request;
40
    }
41
42
    public function getCredentials(): RequestDtoInterface
43
    {
44
        return $this->credentials;
45
    }
46
}
47