Div PHP Enum Class: Implement enumerated values using classes

Recommend this page to a friend!
  Info   View files (5)   Download .zip   Reputation   Support forum (1)   Blog (1)    
Last Updated Ratings Unique User Downloads Download Rankings
2019-09-19 (10 months ago) Not enough user ratingsTotal: 65 All time: 9,703 This week: 431
Version License PHP version Categories
divengine-enum 1.0GNU General Publi...7PHP 5, Data types, Language
Description Author

This package can implement enumerated values using classes.

It provides an abstract class that can be be extended by concrete classes that can be used as enumerated values.

Since the enumerated values are actual classes, function declarations can use enumerated values this way to allow PHP to verify that the correct type of enumerated value can be passed to a function as parameter using PHP type hinting support.

Picture of Rafa Rodriguez
  Performance   Level  
Name: Rafa Rodriguez <contact>
Classes: 5 packages by
Country: Cuba Cuba
Age: 33
All time rank: 18173 in Cuba Cuba
Week rank: 259 1 in Cuba Cuba
Innovation award
Innovation award
Nominee: 2x

File Role Description
src (1 file)
CHANGELOG.md Data Auxiliary data
composer.json Data Auxiliary data
LICENSE Lic. License text
README.md Doc. Read me

  Files  /  src  
File Role Description
   enum.php Class Class source

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:9,703
This week:431
User Comments (1)
Thats a very good class for enums ;-)
10 months ago (Josť Filipe Lopes Santos)

For more information send a message to info at phpclasses dot org.