Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.
/ php-enum Public archive

Fork of myclabs/php-enum that changes the logic of __toString method so it hides by default the value of the enum.

License

Notifications You must be signed in to change notification settings

mcustiel/php-enum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-enum

Fork of myclabs/php-enum that changes the logic of __toString method so it shows by default the name of the constant that defined the enum. The only difference is that this fork of php-enum shows key (name of the const) in __toString method since from my point of view enums are used to abstract the actual value. The implementing class should overwrite __toString if it wishes to show the value or some other information.

Documentation

See documentation in original php-enum. (Or download it from there if you don't mind about __toString).

About

Fork of myclabs/php-enum that changes the logic of __toString method so it hides by default the value of the enum.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages