public function setHandler($handlerName, $handlerCallback)
    {
        $this->checkHandlerName($handlerName);

        if (!is_callable($handlerCallback))
        {
            throw new RuntimeException("Handler callback must be callable");
        }

        $this->handlers[$handlerName] = $handlerCallback;

        return $this;
    }
public function setHandler($handlerName, $handlerCallback)
    {
        $this->checkHandlerName($handlerName);

        if (!is_callable($handlerCallback))
        {
            throw new RuntimeException("Handler callback must be callable");
        }

        $this->handlers[$handlerName] = $handlerCallback;

        return $this;
    }
public function setHandler ( $ handlerName , $ handlerCallback ) { $ this -> checkHandlerName ( $ handlerName ) ; if ( ! is_callable ( $ handlerCallback ) ) { throw new RuntimeException ( "Handler callback must be callable" ) ; } $ this -> handlers [ $ handlerName ] = $ handlerCallback ; return $ this ; }
Set handler callback for processing action.

@see PaymentProcessor::callHandler()

@param       string          $handlerName            Handler name
@param       callable        $handlerCallback        Handler callback

@return      self
Set handler callback for processing action .