src/Shop/InvoiceManager.php
protected function getSendResultLogText(Source $invoiceSource, Result $result, $addReqResp = Result::AddReqResp_WithOther)
    {
        $invoiceSourceText = sprintf($this->t('message_invoice_source'),
            $this->t($invoiceSource->getType()),
            $invoiceSource->getReference()
        );
        $logMessage = sprintf($this->t('message_invoice_send'),
            $result->getTrigger(),
            $invoiceSourceText,
            $result->getLogText($addReqResp)
        );
        return $logMessage;
    }
protected function getSendResultLogText(Source $invoiceSource, Result $result, $addReqResp = Result::AddReqResp_WithOther)
    {
        $invoiceSourceText = sprintf($this->t('message_invoice_source'),
            $this->t($invoiceSource->getType()),
            $invoiceSource->getReference()
        );
        $logMessage = sprintf($this->t('message_invoice_send'),
            $result->getTrigger(),
            $invoiceSourceText,
            $result->getLogText($addReqResp)
        );
        return $logMessage;
    }
protected function getSendResultLogText ( Source $ invoiceSource , Result $ result , $ addReqResp = Result :: AddReqResp_WithOther ) { $ invoiceSourceText = sprintf ( $ this -> t ( 'message_invoice_source' ) , $ this -> t ( $ invoiceSource -> getType ( ) ) , $ invoiceSource -> getReference ( ) ) ; $ logMessage = sprintf ( $ this -> t ( 'message_invoice_send' ) , $ result -> getTrigger ( ) , $ invoiceSourceText , $ result -> getLogText ( $ addReqResp ) ) ; return $ logMessage ; }
Returns a string that details the result of the invoice sending.

@param \Siel\Acumulus\Invoice\Source $invoiceSource
@param \Siel\Acumulus\Invoice\Result $result

@param int $addReqResp
Whether to add the raw request and response.
One of the Result::AddReqResp_... constants

@return string
Returns a string that details the result of the invoice sending .