Merge pull request #18912 from yashodha/dev_2153
[civicrm-core.git] / Civi / Api4 / MailSettings.php
1 <?php
2
3 /*
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC. All rights reserved. |
6 | |
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 |
10 +--------------------------------------------------------------------+
11 */
12
13 /**
14 *
15 * @package CRM
16 * @copyright CiviCRM LLC https://civicrm.org/licensing
17 */
18
19
20 namespace Civi\Api4;
21
22 /**
23 * MailSettings entity.
24 *
25 * @package Civi\Api4
26 */
27 class MailSettings extends Generic\DAOEntity {
28
29 /**
30 * Check whether the mail store is accessible.
31 *
32 * @param bool $checkPermissions
33 * @return \Civi\Api4\Action\MailSettings\TestConnection
34 */
35 public static function testConnection($checkPermissions = TRUE) {
36 $action = new \Civi\Api4\Action\MailSettings\TestConnection(static::class, __FUNCTION__);
37 return $action->setCheckPermissions($checkPermissions);
38 }
39
40 }