Skip to content

hayeslam/php-enum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-enum

Extension for the myclabs/php-enum library.

Add method

  • getLabel() Returns the enum label

Static methods:

  • labels() Returns the labels of all constants in the Enum class

      // Define the label corresponding to the enumeration value. example:
      return [value => label];
  • options() Returns all possible options as an array

About

Extension for the myclabs/php-enum library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages