Register   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A authenticate() 0 3 1
1
<?php
2
declare(strict_types=1);
3
4
/**
5
 * Application Artifact
6
 * @author Max Demian <[email protected]>
7
 */
8
9
namespace Ticaje\AliexpressConsumer\Application\Strategy\Authentication;
10
11
use Ticaje\AeSdk\Infrastructure\Interfaces\Provider\Request\RequestDtoInterface;
12
13
use Ticaje\AliexpressConsumer\Application\Interfaces\AuthenticatorInterface;
14
15
/**
16
 * Class Register
17
 * @package Ticaje\AliexpressConsumer\Application\Strategy\Authentication
18
 */
19
class Register implements AuthenticatorInterface
20
{
21
    private $requestDto;
22
23
    /**
24
     * Register constructor.
25
     * @param RequestDtoInterface $requestDto
26
     */
27
    public function __construct(
28
        RequestDtoInterface $requestDto
29
    ) {
30
        $this->requestDto = $requestDto;
31
    }
32
33
    /**
34
     * @inheritDoc
35
     * This is sort of stub until we decide to use this class actively
36
     */
37
    public function authenticate(RequestDtoInterface $credentials): RequestDtoInterface
38
    {
39
        return $credentials;
40
    }
41
}
42