Base::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 6
rs 10
cc 1
nc 1
nop 2
1
<?php
2
declare(strict_types=1);
3
4
/**
5
 * Gateway Client Class
6
 * @category    Ticaje
7
 * @package     Ticaje_Connector
8
 * @author      Hector Luis Barrientos <[email protected]>
9
 */
10
11
namespace Ticaje\Connector\Gateway\Client;
12
13
use Ticaje\Base\Application\Factory\FactoryInterface;
14
use Ticaje\Contract\Patterns\Interfaces\Decorator\ResponderInterface;
15
use Ticaje\Connector\Interfaces\ClientInterface;
16
17
/**
18
 * Class Base
19
 * @package Ticaje\Connector\Gateway\Client
20
 */
21
abstract class Base implements ClientInterface
22
{
23
    protected $client;
24
25
    protected $clientFactory;
26
27
    protected $responder;
28
29
    /**
30
     * Base constructor.
31
     * @param ResponderInterface $responder
32
     * @param FactoryInterface $clientFactory
33
     */
34
    public function __construct(
35
        ResponderInterface $responder,
36
        FactoryInterface $clientFactory
37
    ) {
38
        $this->responder = $responder;
39
        $this->clientFactory = $clientFactory;
40
    }
41
}
42