CompilingMatcher
in package
Helper class to evaluate constraint by compiling and reusing the code to evaluate
Table of Contents
Methods
- clear() : void
- Clears the memoization cache once you are done
- match() : bool
- Evaluates the expression: $constraint match $operator $version
Methods
clear()
Clears the memoization cache once you are done
public
static clear() : void
match()
Evaluates the expression: $constraint match $operator $version
public
static match(ConstraintInterface $constraint, int $operator, string $version) : bool
Parameters
- $constraint : ConstraintInterface
- $operator : int
- $version : string