public function AbstractConstraint::matches in Automatic Updates 7
Parameters
ConstraintInterface $provider:
Return value
bool
Overrides ConstraintInterface::matches
File
- vendor/
composer/ semver/ src/ Constraint/ AbstractConstraint.php, line 29
Class
- AbstractConstraint
- Base constraint class.
Namespace
Composer\Semver\ConstraintCode
public function matches(ConstraintInterface $provider) {
if ($provider instanceof $this) {
// see note at bottom of this class declaration
return $this
->matchSpecific($provider);
}
// turn matching around to find a match
return $provider
->matches($this);
}