for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/**
* Gateway Client Class
* @category Ticaje
* @author Max Demian <[email protected]>
*/
namespace Ticaje\AConnector\Gateway\Client;
use Ticaje\Contract\Factory\FactoryInterface;
use Ticaje\Contract\Patterns\Interfaces\Decorator\ResponderInterface;
use Ticaje\AConnector\Interfaces\ClientInterface;
* Class Base
* @package Ticaje\AConnector\Gateway\Client
abstract class Base implements ClientInterface
{
protected $client;
protected $clientFactory;
protected $responder;
protected $implementor;
* Base constructor.
* @param ResponderInterface $responder
* @param FactoryInterface $clientFactory
* @param ClientInterface $implementor
public function __construct(
ResponderInterface $responder,
FactoryInterface $clientFactory,
ClientInterface $implementor
) {
$this->responder = $responder;
$this->clientFactory = $clientFactory;
$this->implementor = $implementor;
}