A base class for enumerations in PHP

1.0.0 2018-01-10 20:07 UTC

This package is auto-updated.

Last update: 2024-04-25 05:43:14 UTC


README

A base class for enumerations in PHP.

This library consists of a single abstract class, which can be extended by enumerations so that they need only define their member values as constants. A number of static methods are provided to facilitate name and value validation and resolution.

It is intended merely as an easy way for me to share this functionality, in a highly node_modules-esque manner. It is probably best that people do not do this, but #yolo.

Status

Build Status Scrutinizer Code Quality Code Coverage