Register::authenticate()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
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