Completed
Branch master (39009d)
by Jeferson
05:26
created
src/Enum/PrettyEnum.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -21,12 +21,18 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
tests/PrettyEnumTest.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,12 +2,10 @@
 block discarded – undo
2 2
 
3 3
 namespace JefersonC\Tests;
4 4
 
5
-use JefersonC\Enum\PrettyEnum;
6 5
 use JefersonC\Enum\InvalidEnumKeyException;
7 6
 use JefersonC\Enum\InvalidEnumMethodException;
8 7
 use JefersonC\Example\ExampleEnum;
9 8
 use JefersonC\Example\ProfilesExampleEnum;
10
-
11 9
 use PHPUnit\Framework\TestCase;
12 10
 
13 11
 class PrettyEnumTest extends TestCase
Please login to merge, or discard this patch.