public function getProcessor(OperationInterface $operation)
    {
        $operationClass = get_class($operation);
        if (!array_key_exists($operationClass, $this->processors)) {
            throw new ProcessorNotFoundException(
                $operationClass,
                get_class($this)
            );
        }
        $processorClass = $this->processors[$operationClass];
        return new $processorClass();
    }
public function getProcessor(OperationInterface $operation)
    {
        $operationClass = get_class($operation);
        if (!array_key_exists($operationClass, $this->processors)) {
            throw new ProcessorNotFoundException(
                $operationClass,
                get_class($this)
            );
        }
        $processorClass = $this->processors[$operationClass];
        return new $processorClass();
    }
public function getProcessor ( OperationInterface $ operation ) { $ operationClass = get_class ( $ operation ) ; if ( ! array_key_exists ( $ operationClass , $ this -> processors ) ) { throw new ProcessorNotFoundException ( $ operationClass , get_class ( $ this ) ) ; } $ processorClass = $ this -> processors [ $ operationClass ] ; return new $ processorClass ( ) ; }
Returns operation processor instance.

@param OperationInterface $operation
@return ProcessorInterface
Returns operation processor instance .