Typesafe Enum

Package:
Typesafe Enum
Summary:
Implement enumerated values as class functions
Groups:
Code Generation, Data types, PHP 5
Author:
Fabian Schmengler
Description:
This class can be used to implement enumerated values as class functions.

It takes the name of a class and the list of names for enumerated values to define and generates code for a new class that defines the enumerated values.

The enumerated values can be retrieved using static function calls to the generated class.


Powered by Gewgley