Merge pull request #15348 from civicrm/5.18
[civicrm-core.git] / Civi / Api4 / GroupContact.php
1 <?php
2
3 namespace Civi\Api4;
4
5 /**
6 * GroupContact entity - link between groups and contacts.
7 *
8 * A contact can either be "Added" "Removed" or "Pending" in a group.
9 * CiviCRM only considers them to be "in" a group if their status is "Added".
10 *
11 * @package Civi\Api4
12 */
13 class GroupContact extends Generic\DAOEntity {
14
15 /**
16 * @return Action\GroupContact\Create
17 */
18 public static function create() {
19 return new Action\GroupContact\Create(__CLASS__, __FUNCTION__);
20 }
21
22 /**
23 * @return Action\GroupContact\Save
24 */
25 public static function save() {
26 return new Action\GroupContact\Save(__CLASS__, __FUNCTION__);
27 }
28
29 /**
30 * @return Action\GroupContact\Update
31 */
32 public static function update() {
33 return new Action\GroupContact\Update(__CLASS__, __FUNCTION__);
34 }
35
36 }