Merge pull request #24153 from agileware/CIVICRM-2025
[civicrm-core.git] / CRM / Contribute / RecurTokens.php
CommitLineData
0f4031da
EM
1<?php
2
3/*
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC. All rights reserved. |
6 | |
7 | This work is published under the GNU AGPLv3 license with some |
8 | permitted exceptions and without any warranty. For full license |
9 | and copyright information, see https://civicrm.org/licensing |
10 +--------------------------------------------------------------------+
11 */
12
13/**
14 * Class CRM_Contribute_RecurTokens
15 *
16 * Generate "contribution_recur.*" tokens.
17 */
18class CRM_Contribute_RecurTokens extends CRM_Core_EntityTokens {
19
20 /**
21 * Get the entity name for api v4 calls.
22 *
23 * @return string
24 */
25 protected function getApiEntityName(): string {
26 return 'ContributionRecur';
27 }
28
29 /**
30 * @return array
31 */
32 public function getCurrencyFieldName(): array {
33 return ['currency'];
34 }
35
36}