| Recommend this page to a friend! |
| Author | ||
![]() |
|
Innovation award![]() Nominee: 4x | |||||||||||||||||||
| Classes of Fabian Schmengler | > | Typesafe Enum | > | Download .zip .tar.gz | > | > | > | |||||
|
|||||||||||||||||||||||
| Groups | Dependents | Applications | ||||||||
| Groups | ||
| PHP 5 | Classes using PHP 5 specific features | View top rated classes | |
| Data types | Modeling and manipulating data types | View top rated classes | |
| Code Generation | Compilers and tools that generate code automatically | View top rated classes |
| Innovation Award | ||
![]() March 2010 Number 5 Prize: One book of choice by Packt |
Enumerated values can be used to assign meaningful values to variables that only accept a limited number of values. An alternative way to implement enumerated value types by using class functions to represent each enumerated value. Manuel Lemos |
| User ratings | ||
| Not yet rated by the users |
| Packages that need this class | ||
| Class | Dependency | Why it is needed |
|---|---|---|
| Output Filter | Enumeration data type |
| Applications that use this class | ||
| File | Role | Description | ||
|---|---|---|---|---|
| Doc. | Full documentation | |||
| Lic. | BSD License | |||
| Aux. | Include this file to use the package | |||
| Class | Enum base class and generator | |||
| Files | / | |||
| File | Role | Description |
|---|---|---|
| |
Class | Benchmark class |
| |
Test | PHPUnit test class |
| |
Aux. | The script that I used for benchmarking |
| Download all files: typesafe-enum.tar.gz typesafe-enum.zip |