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; |
||
12 | |||
13 | use Ticaje\Connector\Interfaces\ClientInterface; |
||
14 | |||
15 | /** |
||
16 | * Class Base |
||
17 | * @package Ticaje\Connector\Gateway\Provider |
||
18 | */ |
||
19 | abstract class Base |
||
20 | { |
||
21 | protected $connector; |
||
22 | |||
23 | protected $params; |
||
24 | |||
25 | /** |
||
26 | * Base constructor. |
||
27 | * @param ClientInterface $connector |
||
28 | */ |
||
29 | public function __construct( |
||
30 | ClientInterface $connector |
||
31 | ) { |
||
32 | $this->connector = $connector; |
||
33 | } |
||
34 | |||
35 | public function initialize($credentials) |
||
36 | { |
||
37 | $this->connector->generateClient($credentials); |
||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||
38 | return $this; |
||
39 | } |
||
40 | } |
||
41 |