Total Complexity | 2 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
24 | abstract class BaseClient extends Component implements ClientInterface |
||
25 | { |
||
26 | |||
27 | /** |
||
28 | * Constructor. |
||
29 | * |
||
30 | * @param BaseGateway $gateway the gateway object of this client. |
||
31 | * @param array $config configurations to be applied to the newly created client object. |
||
32 | */ |
||
33 | 11 | public function __construct(BaseGateway $gateway, array $config = []) |
|
34 | { |
||
35 | 11 | $this->_gateway = $gateway; |
|
36 | |||
37 | 11 | parent::__construct($config); |
|
38 | 11 | } |
|
39 | |||
40 | /** |
||
41 | * @var BaseGateway|GatewayInterface the gateway object of this client. |
||
42 | */ |
||
43 | private $_gateway; |
||
44 | |||
45 | /** |
||
46 | * @inheritdoc |
||
47 | * @return BaseGateway|GatewayInterface |
||
48 | */ |
||
49 | 1 | public function getGateway(): GatewayInterface |
|
52 | } |
||
53 | |||
56 |