Method Summary
-
string
format(, )
For the choice string, and a number, find and return the string that satisfied the set within the choices.
-
boolean
isValid(, )
Determines if the given number belongs to a given set
-
array
parse()
Parses a choice string and get a list of sets and a list of strings corresponding to the sets.
-
__construct()
Constructor.
Method Details
-
For the choice string, and a number, find and return the string that satisfied the set within the choices.
returns the choosen string.
-
(boolean) isValid (, )
Browse code
Determines if the given number belongs to a given set
returns true if number is in the set, false otherwise.
-
Parses a choice string and get a list of sets and a list of strings corresponding to the sets.
returns array($sets, $strings)
-
Constructor.
|