hayes/php-enum

Extension for the myclabs/php-enum library

1.0.1 2022-03-02 10:17 UTC

This package is auto-updated.

Last update: 2024-05-29 05:03:03 UTC


README

Extension for the myclabs/php-enum library.

Documentation

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