Native enumerations in PHP
![Preview post image](https://www.hibit.dev/images/posts/2022/headers/php_enum.png)
Enumerations, or Enums allow a developer to define a custom type that is limited to one of a discrete number of possible values. That can be especially helpful when defining a domain model, as it enables making invalid states unrepresentable. In other words, enums are a restricting layer on top of classes and class constants, intended to provide a way to define a closed set of possible values for a type.