Add @searchable annotation to denote which API entities should be visible in Search...
[civicrm-core.git] / Civi / Api4 / MailSettings.php
CommitLineData
19b53e5b
C
1<?php
2
380f3545
TO
3/*
4 +--------------------------------------------------------------------+
41498ac5 5 | Copyright CiviCRM LLC. All rights reserved. |
380f3545 6 | |
41498ac5
TO
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 |
380f3545
TO
10 +--------------------------------------------------------------------+
11 */
12
13/**
14 *
15 * @package CRM
ca5cec67 16 * @copyright CiviCRM LLC https://civicrm.org/licensing
380f3545
TO
17 */
18
19
19b53e5b
C
20namespace Civi\Api4;
21
22/**
23 * MailSettings entity.
24 *
09815e9c 25 * @searchable false
19b53e5b
C
26 * @package Civi\Api4
27 */
28class MailSettings extends Generic\DAOEntity {
29
e3f6a1e9
TO
30 /**
31 * Check whether the mail store is accessible.
32 *
33 * @param bool $checkPermissions
34 * @return \Civi\Api4\Action\MailSettings\TestConnection
35 */
36 public static function testConnection($checkPermissions = TRUE) {
37 $action = new \Civi\Api4\Action\MailSettings\TestConnection(static::class, __FUNCTION__);
38 return $action->setCheckPermissions($checkPermissions);
39 }
40
19b53e5b 41}