Apply PSR-12 code style (#3886)
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / lib / system / user / notification / event / TTestableUserNotificationEvent.class.php
CommitLineData
e0c10ca7 1<?php
a9229942 2
e0c10ca7 3namespace wcf\system\user\notification\event;
a9229942 4
e0c10ca7
MS
5use wcf\system\user\notification\object\IUserNotificationObject;
6
7/**
8 * Default implementation of some methods of the testable user notification event interface.
a9229942
TD
9 *
10 * @author Matthias Schmidt
11 * @copyright 2001-2019 WoltLab GmbH
12 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
13 * @package WoltLabSuite\Core\System\User\Notification\Event
14 * @since 3.1
e0c10ca7 15 */
a9229942
TD
16trait TTestableUserNotificationEvent
17{
18 /**
19 * description of the specfic test case
20 * @var string
21 */
22 protected $testCaseDescription = '';
23
24 /**
25 * @see ITestableUserNotificationEvent::canBeTriggeredByGuests()
26 */
27 public static function canBeTriggeredByGuests()
28 {
29 return false;
30 }
31
32 /**
33 * @see ITestableUserNotificationEvent::getTestCaseDescription()
34 */
35 public function getTestCaseDescription()
36 {
37 return $this->testCaseDescription;
38 }
39
40 /**
41 * @see ITestableUserNotificationEvent::setTestCaseDescription()
42 */
43 public function setTestCaseDescription($description)
44 {
45 $this->testCaseDescription = $description;
46 }
47
48 /**
49 * @see ITestableUserNotificationEvent::getTestAdditionalData()
50 */
51 public static function getTestAdditionalData(IUserNotificationObject $object)
52 {
53 return [];
54 }
a48da5ed 55}