Base   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
1
<?php
2
declare(strict_types=1);
3
4
/**
5
 * Gateway Client Class
6
 * @category    Ticaje
7
 * @author      Max Demian <[email protected]>
8
 */
9
10
namespace Ticaje\AConnector\Gateway\Client;
11
12
use Ticaje\Contract\Factory\FactoryInterface;
13
use Ticaje\Contract\Patterns\Interfaces\Decorator\ResponderInterface;
14
15
use Ticaje\AConnector\Interfaces\ClientInterface;
16
17
/**
18
 * Class Base
19
 * @package Ticaje\AConnector\Gateway\Client
20
 */
21
abstract class Base implements ClientInterface
22
{
23
    protected $client;
24
25
    protected $clientFactory;
26
27
    protected $responder;
28
29
    protected $implementor;
30
31
    /**
32
     * Base constructor.
33
     * @param ResponderInterface $responder
34
     * @param FactoryInterface $clientFactory
35
     * @param ClientInterface $implementor
36
     */
37
    public function __construct(
38
        ResponderInterface $responder,
39
        FactoryInterface $clientFactory,
40
        ClientInterface $implementor
41
    ) {
42
        $this->responder = $responder;
43
        $this->clientFactory = $clientFactory;
44
        $this->implementor = $implementor;
45
    }
46
}
47