becebb63 |
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 | |
12 | /** |
13 | * |
14 | * @package CRM |
15 | * @copyright CiviCRM LLC https://civicrm.org/licensing |
16 | */ |
17 | class CRM_Financial_BAO_EntityFinancialTrxn extends CRM_Financial_DAO_EntityFinancialTrxn { |
18 | |
19 | /** |
20 | * Whitelist of possible values for the entity_table field |
21 | * |
22 | * @return array |
23 | */ |
24 | public static function entityTables(): array { |
25 | return [ |
26 | 'civicrm_contribution' => ts('Contribution'), |
27 | 'civicrm_financial_item' => ts('Financial Item'), |
28 | ]; |
29 | } |
30 | |
31 | } |