This repository was archived by the owner on Dec 26, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,8 @@ public static function __callStatic($memberName, array $args)
78
78
}
79
79
80
80
/**
81
+ * Returns member name
82
+ *
81
83
* @return string
82
84
*/
83
85
public function getName ()
@@ -86,6 +88,8 @@ public function getName()
86
88
}
87
89
88
90
/**
91
+ * Returns member value
92
+ *
89
93
* @return mixed
90
94
*/
91
95
public function getValue ()
@@ -94,12 +98,20 @@ public function getValue()
94
98
}
95
99
96
100
/**
101
+ * Generates and returns members of enum as associative array (keys are names and values are values)
102
+ *
103
+ * NOTE: Can not be merged with static {@link getMembers()} due to its abstraction.
104
+ *
97
105
* @return mixed[] [first_name => first_value, second_name => second_value,...]
98
106
*/
99
107
abstract protected function members ();
100
108
101
109
/**
102
- * @return mixed[]
110
+ * Returns members of enum
111
+ *
112
+ * NOTE: Can not be merged with non-static {@link members()} due to its inner logic
113
+ *
114
+ * @return mixed[] [first_name => first_value, second_name => second_value,...]
103
115
*/
104
116
public static function getMembers ()
105
117
{
You can’t perform that action at this time.
0 commit comments