Predis\Command\Processor\ProcessorChain::offsetSet PHP Метод

offsetSet() публичный Метод

public offsetSet ( $index, $processor )
    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;
    }