Predis\Protocol\Text\CompositeProtocolProcessor::__construct PHP Method

__construct() public method

public __construct ( Predis\Protocol\RequestSerializerInterface $serializer = null, Predis\Protocol\ResponseReaderInterface $reader = null )
$serializer Predis\Protocol\RequestSerializerInterface Request serializer.
$reader Predis\Protocol\ResponseReaderInterface Response reader.
    public function __construct(RequestSerializerInterface $serializer = null, ResponseReaderInterface $reader = null)
    {
        $this->setRequestSerializer($serializer ?: new RequestSerializer());
        $this->setResponseReader($reader ?: new ResponseReader());
    }