BooleanFunctions
class BooleanFunctions extends AbstractConvertor
Properties
protected RecursiveParser | $parser | from AbstractRecursiveMatcher |
Methods
Parse given string and return its value
Retrieve the attribute name from an attribute expression
Normalize a number representation
Return the matchers configuration
Convert a call to boolean() with a param
Convert a call to false()
Convert a call to boolean() with an attribute
Convert a call to boolean(@*)
Convert a call to not() with a boolean expression
Convert a call to not() with an attribute
Convert a call to not() with a param
Convert a call to true()
Details
in
AbstractRecursiveMatcher at line 23
void
__construct(RecursiveParser $parser)
No description
in
AbstractRecursiveMatcher at line 35
protected mixed
recurse(string $str, string $restrict = '')
Parse given string and return its value
in
AbstractConvertor at line 20
protected string
getAttributeName(string $expr)
Retrieve the attribute name from an attribute expression
in
AbstractConvertor at line 32
protected string
normalizeNumber(string $sign, string $number)
Normalize a number representation
at line 15
array
getMatchers()
Return the matchers configuration
Match name as key. Can be prefixed with a colon-separated list of groups, e.g. "Group:Name". Value must be a string or an array with the following elements:
- regexp: the regular expression used to match input.
- order: used to sort matchers. Defaults to 0.
- groups: list of groups this match belongs to. Defaults to an empty array.
- callback: called with the matched strings. Defaults to [$this, "parseX"] where X is the match name.
If the config is a string, the string is used for the "regexp" element.
at line 41
string
parseBooleanParam(string $expr)
Convert a call to boolean() with a param
at line 51
string
parseFalse()
Convert a call to false()
at line 62
string
parseHasAttribute(string $expr)
Convert a call to boolean() with an attribute
at line 74
string
parseHasAttributes()
Convert a call to boolean(@*)
at line 85
string
parseNot(string $expr)
Convert a call to not() with a boolean expression
at line 96
string
parseNotAttribute(string $expr)
Convert a call to not() with an attribute
at line 109
string
parseNotParam(string $expr)
Convert a call to not() with a param
at line 119
string
parseTrue()
Convert a call to true()