DigitList
interface DigitList implements Countable (View source)
Interface for different kinds of digit lists.
A digit list determines the different digits in numeral system and how to determine their value efficiently. A digit list also knows if the digits are case sensitive and if the numbers using these digits can be represented using a string.
Methods
Tells if there is conflict that prevents numbers from being represented as a string.
Tells if the digits are case sensitive or not.
Returns all the digits in the list.
Returns the digit that represents the given value.
Returns the value for the given digit.
Returns the number of different digits.
Details
at line 23
bool
hasStringConflict()
Tells if there is conflict that prevents numbers from being represented as a string.
at line 29
bool
isCaseSensitive()
Tells if the digits are case sensitive or not.
at line 35
array
getDigits()
Returns all the digits in the list.
at line 43
mixed
getDigit(int $value)
Returns the digit that represents the given value.
at line 51
int
getValue(mixed $digit)
Returns the value for the given digit.
at line 57
int
count()
Returns the number of different digits.