PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.1.0
GiveWP – Donation Plugin and Fundraising Platform v4.1.0
4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 2.30.0 2.31.0 2.31.1 All 253 releases
give / src / Log / ValueObjects / LogType.php

LogType.php in GiveWP – Donation Plugin and Fundraising Platform 4.1.0, at src/Log/ValueObjects/LogType.php

59 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Give\Log\ValueObjects;
4
5 /**
6 * Class LogType
7 * @package Give\Log\ValueObjects
8 *
9 * @since 2.19.6 - added DEBUG
10 * @since 2.10.0
11 *
12 * @method static ERROR()
13 * @method static WARNING()
14 * @method static NOTICE()
15 * @method static SUCCESS()
16 * @method static INFO()
17 * @method static HTTP()
18 * @method static SPAM()
19 * @method static DEBUG()
20 */
21 class LogType extends Enum
22 {
23 const ERROR = 'error';
24 const WARNING = 'warning';
25 const NOTICE = 'notice';
26 const SUCCESS = 'success';
27 const INFO = 'info';
28 const HTTP = 'http';
29 const SPAM = 'spam';
30 const DEBUG = 'debug';
31
32 /**
33 * @inheritDoc
34 */
35 public static function getDefault()
36 {
37 return self::ERROR;
38 }
39
40 /**
41 * Get types translated
42 *
43 * @return array
44 */
45 public static function getTypesTranslated()
46 {
47 return [
48 self::ERROR => esc_html__('Error', 'give'),
49 self::WARNING => esc_html__('Warning', 'give'),
50 self::NOTICE => esc_html__('Notice', 'give'),
51 self::SUCCESS => esc_html__('Success', 'give'),
52 self::INFO => esc_html__('Info', 'give'),
53 self::HTTP => esc_html__('HTTP', 'give'),
54 self::SPAM => esc_html__('Spam', 'give'),
55 self::DEBUG => esc_html__('Debug', 'give'),
56 ];
57 }
58 }
59