Lines Matching defs:constraint
107 * Checks whether the given package satisfies a version constraint
115 * @param string|null $constraint A version constraint to check for, if you pass one you have to make sure composer/semver is required by your package
118 public static function satisfies(VersionParser $parser, $packageName, $constraint)
120 $constraint = $parser->parseConstraints($constraint);
123 return $provided->matches($constraint);
127 * Returns a version constraint representing all the range(s) which are installed for a given package
129 * It is easier to use this via isInstalled() with the $constraint argument if you need to check
133 * @return string Version constraint usable with composer/semver