2 namespace wcf\system\user\notification\event
;
3 use wcf\system\user\notification\
object\IUserNotificationObject
;
6 * Default implementation of some methods of the testable user notification event interface.
8 * @author Matthias Schmidt
9 * @copyright 2001-2017 WoltLab GmbH
10 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
11 * @package WoltLabSuite\Core\System\User\Notification\Event
14 trait TTestableUserNotificationEvent
{
16 * description of the specfic test case
19 protected $testCaseDescription = '';
22 * @see ITestableUserNotificationEvent::canBeTriggeredByGuests()
24 public static function canBeTriggeredByGuests() {
29 * @see ITestableUserNotificationEvent::getTestCaseDescription()
31 public function getTestCaseDescription() {
32 return $this->testCaseDescription
;
36 * @see ITestableUserNotificationEvent::setTestCaseDescription()
38 public function setTestCaseDescription($description) {
39 $this->testCaseDescription
= $description;
43 * @see ITestableUserNotificationEvent::getTestAdditionalData()
45 public static function getTestAdditionalData(IUserNotificationObject
$object) {