I know that PHP doesn\'t have native Enumerations. But I have become accustomed to them from the Java world. I would love to use enums as a way to give predefined values whi
I found this library on github and I think it provides a very decent alternative to the answers here.
function setAction(Action $action) {
format
, parse
, …)final
to prevent it)