src/PHPDish/Bundle/CoreBundle/Util/NotificationHelper.php
public function createWithdrawNotification(PaymentInterface $payment)
    {
        $message = $payment->getStatus() === PaymentInterface::STATUS_OK
            ? $this->translator->trans('notification.withdraw.subject.your_withdraw_was_approved', ['%payment%' => $payment->getDescription()])
            : $this->translator->trans('notification.withdraw.subject.your_withdraw_was_declined', ['%payment%' => $payment->getDescription()]);

        $notification = $this->notificationManager->createNotification(
            $this->translator->trans('notification.withdraw.subject'),
            $message
        );
        $notification->addParameters([
            'subject' => Notification::SUBJECT_HANDLE_WITHDRAW,
            'payment_id' => $payment->getId(),
            'payment_serial_no' => $payment->getSerialNo(),
        ]);

        return $notification;
    }
public function createWithdrawNotification(PaymentInterface $payment)
    {
        $message = $payment->getStatus() === PaymentInterface::STATUS_OK
            ? $this->translator->trans('notification.withdraw.subject.your_withdraw_was_approved', ['%payment%' => $payment->getDescription()])
            : $this->translator->trans('notification.withdraw.subject.your_withdraw_was_declined', ['%payment%' => $payment->getDescription()]);

        $notification = $this->notificationManager->createNotification(
            $this->translator->trans('notification.withdraw.subject'),
            $message
        );
        $notification->addParameters([
            'subject' => Notification::SUBJECT_HANDLE_WITHDRAW,
            'payment_id' => $payment->getId(),
            'payment_serial_no' => $payment->getSerialNo(),
        ]);

        return $notification;
    }
{@inheritdoc}