public function setProcessorName($processorName)
    {
        if (!empty($this->processorName))
        {
            throw new RuntimeException('You can set payment transaction processor name only once');
        }

        $this->processorName = $processorName;

        return $this;
    }
public function setProcessorName($processorName)
    {
        if (!empty($this->processorName))
        {
            throw new RuntimeException('You can set payment transaction processor name only once');
        }

        $this->processorName = $processorName;

        return $this;
    }
public function setProcessorName ( $ processorName ) { if ( ! empty ( $ this -> processorName ) ) { throw new RuntimeException ( 'You can set payment transaction processor name only once' ) ; } $ this -> processorName = $ processorName ; return $ this ; }
Set payment transaction processor name

@param       string      $processorName      Processor name

@return      self

@throws      RuntimeException                Processor name already specified
Set payment transaction processor name