Copied!

Helper class to evaluate constraint by compiling and reusing the code to evaluate

Cloneable Instantiable
Methods
public static clear ()
 

Clears the memoization cache once you are done

  • return void
public static match ( Composer\Semver\Constraint\ConstraintInterface $constraint , $operator , $version )
 

Evaluates the expression: $constraint match $operator $version

  • param ConstraintInterface $constraint
  • param int $operator
  • phpstan-param Constraint::OP_* $operator
  • param string $version
  • return mixed
Properties
private static $compiledCheckerCache
 
  • var array
  • phpstan-var array<string, callable>
private static $enabled
 
  • var bool
private static $resultCache
 
  • var array
  • phpstan-var array<string, bool>
private static $transOpInt = [ '==' , '<' , '<=' , '>' , '>=' , '!=' ]
 
  • phpstan-var array<Constraint::OP_, Constraint::STROP>
Properties
private static $compiledCheckerCache
 
  • var array
  • phpstan-var array<string, callable>
private static $enabled
 
  • var bool
private static $resultCache
 
  • var array
  • phpstan-var array<string, bool>
private static $transOpInt = [ '==' , '<' , '<=' , '>' , '>=' , '!=' ]
 
  • phpstan-var array<Constraint::OP_, Constraint::STROP>
Methods
public static clear ()
 

Clears the memoization cache once you are done

  • return void
public static match ( Composer\Semver\Constraint\ConstraintInterface $constraint , $operator , $version )
 

Evaluates the expression: $constraint match $operator $version

  • param ConstraintInterface $constraint
  • param int $operator
  • phpstan-param Constraint::OP_* $operator
  • param string $version
  • return mixed
© 2022 Bruce Wells
Search Namespaces \ Classes
Configuration