-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
33 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
wcfsetup/install/files/lib/system/form/builder/NoticeFormNodeType.class.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
namespace wcf\system\form\builder; | ||
|
||
/** | ||
* Defines the available types for the notice form node. | ||
* | ||
* @author Marcel Werk | ||
* @copyright 2001-2023 WoltLab GmbH | ||
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php> | ||
* @since 6.1 | ||
*/ | ||
enum NoticeFormNodeType | ||
{ | ||
case Info; | ||
case Success; | ||
case Warning; | ||
case Error; | ||
|
||
public function toString(): string | ||
{ | ||
return match ($this) { | ||
self::Info => 'info', | ||
self::Success => 'success', | ||
self::Warning => 'warning', | ||
self::Error => 'error', | ||
}; | ||
} | ||
} |