Merge pull request #22884 from civicrm/5.47
[civicrm-core.git] / CRM / Contribute / WorkflowMessage / ContributionInvoiceReceipt.php
CommitLineData
66c8a610
EM
1<?php
2/*
3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
5 | |
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
9 +--------------------------------------------------------------------+
10 */
11
12use Civi\WorkflowMessage\GenericWorkflowMessage;
13
14/**
15 * Invoice generated when invoicing is enabled.
16 *
17 * @support template-only
18 * @see CRM_Contribute_Form_Task_Invoice::printPDF
19 */
20class CRM_Contribute_WorkflowMessage_ContributionInvoiceReceipt extends GenericWorkflowMessage {
21
22 use CRM_Contribute_WorkflowMessage_ContributionTrait;
23
24 public const WORKFLOW = 'contribution_invoice_receipt';
25
26 /**
27 * Specify any tokens that should be exported as smarty variables.
28 *
29 * @todo it might be that this should be moved to the trait as we
30 * we work through these.
31 *
32 * @param array $export
33 */
34 protected function exportExtraTokenContext(array &$export): void {
35 $export['smartyTokenAlias']['currency'] = 'contribution.currency';
36 }
37
38}