Base class for creating Enums in PHP