PHP Classes
elePHPant
Icontem

Div PHP Enum Class: Implement enumerated values using classes

Recommend this page to a friend!
  Info   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog (1)    
Last Updated Ratings Unique User Downloads Download Rankings
2019-09-19 (1 month ago) RSS 2.0 feedNot enough user ratingsTotal: 62 This week: 1All time: 9,554 This week: 392Up
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.

  Performance   Level  
Name: Rafa Rodriguez <contact>
Classes: 5 packages by
Country: Cuba Cuba
Age: 33
All time rank: 18293 in Cuba Cuba
Week rank: 141 Up1 in Cuba Cuba Up
Innovation award
Innovation award
Nominee: 2x

 

  Files folder image Files  
File Role Description
Files folder imagesrc (1 file)
Accessible without login Plain text file CHANGELOG.md Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Read me

  Files folder image Files  /  src  
File Role Description
  Plain text file enum.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:62
This week:1
All time:9,554
This week:392Up
User Comments (1)
Thats a very good class for enums ;-)
1 month ago (Josť Filipe Lopes Santos)
70%StarStarStarStar