Passed
Push — master ( 542807...000b7f )
by Hector Luis
11:24
created

Oauth   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
declare(strict_types=1);
3
4
/**
5
 * Gateway Class
6
 * @category    Ticaje
7
 * @package     Ticaje_Connector
8
 * @author      Hector Luis Barrientos <[email protected]>
9
 */
10
11
namespace Ticaje\Connector\Gateway\Provider\Authentication;
12
13
use Ticaje\Base\Application\Factory\FactoryInterface;
14
use Ticaje\Connector\Interfaces\Provider\Authentication\AuthenticatorInterface;
15
use Ticaje\Connector\Interfaces\Provider\Authentication\OAuthInterface;
16
17
/**
18
 * Class Oauth
19
 * @package Ticaje\Connector\Gateway\Provider\Authentication
20
 * This class is held responsible for housing the service contract when it comes to Oauth logic
21
 * The specific implementations of each Oauth related domain belong to each domain
22
 * The only condition for every domain is to be compliant with this class dependencies
23
 */
24
abstract class Oauth implements AuthenticatorInterface, OAuthInterface
25
{
26
    protected $oauthClientFactory;
27
28
    protected $oauthClient;
29
30
    protected $clientCredentialsFactory;
31
32
    protected $credentialsClient;
33
34
    protected $credentials;
35
36
    protected $options;
37
38
    /**
39
     * Oauth constructor.
40
     * @param $oauthClientFactory
41
     * @param $clientCredentialsFactory
42
     */
43
    public function __construct(
44
        FactoryInterface $oauthClientFactory,
45
        FactoryInterface $clientCredentialsFactory
46
    ) {
47
        $this->oauthClientFactory = $oauthClientFactory;
48
        $this->clientCredentialsFactory = $clientCredentialsFactory;
49
    }
50
}
51