public function offsetSet($index, $processor)
{
if (!$processor instanceof ProcessorInterface) {
throw new \InvalidArgumentException('Processor chain accepts only instances of `Predis\\Command\\Processor\\ProcessorInterface`');
}
$this->processors[$index] = $processor;
}