Lines Matching refs:constraint
109 * Checks whether the given package satisfies a version constraint
117 * @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
120 public static function satisfies(VersionParser $parser, $packageName, $constraint)
122 $constraint = $parser->parseConstraints((string) $constraint);
125 return $provided->matches($constraint);
129 * Returns a version constraint representing all the range(s) which are installed for a given package
131 * It is easier to use this via isInstalled() with the $constraint argument if you need to check
135 * @return string Version constraint usable with composer/semver