iDimensionz Standard PHP Library

Maintainers

Package info

github.com/idimensionz/ispl

pkg:composer/idimensionz/ispl

Statistics

Installs: 38

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-master 2017-09-25 00:24 UTC

This package is auto-updated.

Last update: 2026-03-06 13:11:09 UTC


README

iDimensionz's Standard PHP Library

Library containing custom classes.

Code Climate Test Coverage

Enum (EnumAbstract)

Class to emulate enumerated fields (i.e. fields that may only specific values). The specific values are declared as constants in the child class. The parent class provides functions for interacting with the enum:

  • getValidValues(): returns an array of valid values.
  • _isValidValue($value)__: returns true or false to indicate if the value is one of the valid values for this enum.
  • setValue($value), getValue: Getter and setter for the field value.
  • The parent class provides the ability to type-cast the child class as a string to get the value as a string.