1 | <?php |
||
29 | abstract class AbstractSettingDefinition implements SettingDefinition |
||
30 | { |
||
31 | public const NAME = null; |
||
32 | public const DISPLAY_NAME = null; |
||
33 | public const NOTES = ''; |
||
34 | public const DEFAULT = null; |
||
35 | public const SENSITIVE = true; |
||
36 | |||
37 | /** |
||
38 | * @return string |
||
39 | */ |
||
40 | public function getName(): string |
||
44 | |||
45 | /** |
||
46 | * @return string |
||
47 | */ |
||
48 | public function getDisplayName(): string |
||
52 | |||
53 | /** |
||
54 | * @return string |
||
55 | */ |
||
56 | public function getNotes(): string |
||
60 | |||
61 | /** |
||
62 | * @return mixed|null |
||
63 | */ |
||
64 | public function getDefault() |
||
68 | |||
69 | /** |
||
70 | * @return bool |
||
71 | */ |
||
72 | public function isSensitive(): bool |
||
76 | |||
77 | /** |
||
78 | * @param mixed $value |
||
79 | * @return mixed |
||
80 | */ |
||
81 | public function processValue($value) |
||
85 | |||
86 | |||
87 | /** |
||
88 | * Require that a constant exists |
||
89 | * |
||
90 | * @param string $name |
||
91 | * @return mixed |
||
92 | */ |
||
93 | final private function requireConstant(string $name) |
||
107 | } |
||
108 |