Remove boilerplate code block from APIv4 classes
[civicrm-core.git] / Civi / Api4 / MailSettings.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 * MailSettings entity.
15 *
aa998597 16 * @searchable none
19b53e5b
C
17 * @package Civi\Api4
18 */
19class MailSettings extends Generic\DAOEntity {
20
e3f6a1e9
TO
21 /**
22 * Check whether the mail store is accessible.
23 *
24 * @param bool $checkPermissions
25 * @return \Civi\Api4\Action\MailSettings\TestConnection
26 */
27 public static function testConnection($checkPermissions = TRUE) {
9f338c09 28 $action = new \Civi\Api4\Action\MailSettings\TestConnection(__CLASS__, __FUNCTION__);
e3f6a1e9
TO
29 return $action->setCheckPermissions($checkPermissions);
30 }
31
19b53e5b 32}