@@ -21,12 +21,18 @@ discard block |
||
21 | 21 | return $class->register(); |
22 | 22 | } |
23 | 23 | |
24 | + /** |
|
25 | + * @param string $index |
|
26 | + */ |
|
24 | 27 | public static function get($index) { |
25 | 28 | $item = static::getItem($index); |
26 | 29 | |
27 | 30 | return $item['value']; |
28 | 31 | } |
29 | 32 | |
33 | + /** |
|
34 | + * @param string $index |
|
35 | + */ |
|
30 | 36 | public static function pretty($index) { |
31 | 37 | $item = static::getItem($index); |
32 | 38 | |
@@ -55,6 +61,9 @@ discard block |
||
55 | 61 | return $constants[$key]; |
56 | 62 | } |
57 | 63 | |
64 | + /** |
|
65 | + * @param string $key |
|
66 | + */ |
|
58 | 67 | public static function item($key) { |
59 | 68 | return static::mountItem(static::getItem($key)); |
60 | 69 | } |