Remove boilerplate code block from APIv4 classes
[civicrm-core.git] / Civi / Api4 / Contact.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 * Contacts - Individuals, Organizations, Households.
15 *
16 * This is the central entity in the CiviCRM database, and links to
17 * many other entities (Email, Phone, Participant, etc.).
18 *
19 * Creating a new contact requires at minimum a name or email address.
20 *
0493ec47 21 * @see https://docs.civicrm.org/user/en/latest/organising-your-data/contacts/
aa998597 22 * @searchable primary
19b53e5b
C
23 * @package Civi\Api4
24 */
25class Contact extends Generic\DAOEntity {
26
e15f9453 27 /**
6764a9d3
CW
28 * @param bool $checkPermissions
29 * @return Action\Contact\GetChecksum
e15f9453 30 */
6764a9d3
CW
31 public static function getChecksum($checkPermissions = TRUE) {
32 return (new Action\Contact\GetChecksum(__CLASS__, __FUNCTION__))
33 ->setCheckPermissions($checkPermissions);
19b53e5b
C
34 }
35
e15f9453 36 /**
6764a9d3
CW
37 * @param bool $checkPermissions
38 * @return Action\Contact\ValidateChecksum
e15f9453 39 */
6764a9d3
CW
40 public static function validateChecksum($checkPermissions = TRUE) {
41 return (new Action\Contact\ValidateChecksum(__CLASS__, __FUNCTION__))
42 ->setCheckPermissions($checkPermissions);
19b53e5b
C
43 }
44
45}