File tree Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change 1
- ### Example
1
+ # php-enum
2
2
3
- ## The way normal class constants
3
+ This is a native PHP implementation to add enumarable support to PHP.
4
+ It's an abstract class that can be extended to emulate enumerables.
5
+
6
+
7
+ # Why not ``` SplEnum ```
8
+
9
+ * It's not build-in PHP and requires pecl/extension
10
+ * SplEnum is too much magic under the hod
11
+ * SplEnum hasn't strict comparison
12
+
13
+
14
+ # Example
15
+
16
+ ## The way of class constants
4
17
5
18
class User
6
19
{
82
95
* Using type-hint makes arguments save
83
96
* Human readable name of a value is simple accessable
84
97
85
- ### New BSD License
98
+
99
+ # New BSD License
86
100
87
101
The files in this archive are released under the New BSD License.
88
102
You can find a copy of this license in LICENSE.txt file.
You can’t perform that action at this time.
0 commit comments