Merge pull request #22807 from seamuslee001/css_fixes
[civicrm-core.git] / Civi / Api4 / Contribution.php
CommitLineData
19b53e5b 1<?php
380f3545
TO
2/*
3 +--------------------------------------------------------------------+
41498ac5 4 | Copyright CiviCRM LLC. All rights reserved. |
380f3545 5 | |
41498ac5
TO
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 |
380f3545
TO
9 +--------------------------------------------------------------------+
10 */
19b53e5b
C
11namespace Civi\Api4;
12
13/**
14 * Contribution entity.
15 *
aa998597 16 * @searchable primary
d44cc3cb 17 * @since 5.19
19b53e5b
C
18 * @package Civi\Api4
19 */
20class Contribution extends Generic\DAOEntity {
21
ed3f5877
CW
22 /**
23 * @param bool $checkPermissions
24 * @return Action\Contribution\Create
25 */
26 public static function create($checkPermissions = TRUE) {
27 return (new Action\Contribution\Create(__CLASS__, __FUNCTION__))
28 ->setCheckPermissions($checkPermissions);
29 }
30
31 /**
32 * @param bool $checkPermissions
33 * @return Action\Contribution\Save
34 */
35 public static function save($checkPermissions = TRUE) {
36 return (new Action\Contribution\Save(__CLASS__, __FUNCTION__))
37 ->setCheckPermissions($checkPermissions);
38 }
39
40 /**
41 * @param bool $checkPermissions
42 * @return Action\Contribution\Update
43 */
44 public static function update($checkPermissions = TRUE) {
45 return (new Action\Contribution\Update(__CLASS__, __FUNCTION__))
46 ->setCheckPermissions($checkPermissions);
47 }
48
19b53e5b 49}