Commit | Line | Data |
---|---|---|
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 | */ | |
18 | class 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 | } |