function Constraint::matches
Same name in this branch
- 11.1.x vendor/phpunit/phpunit/src/Framework/Constraint/Constraint.php \PHPUnit\Framework\Constraint\Constraint::matches()
Parameters
ConstraintInterface $provider:
Return value
bool
Overrides ConstraintInterface::matches
File
-
vendor/
composer/ semver/ src/ Constraint/ Constraint.php, line 134
Class
- Constraint
- Defines a constraint.
Namespace
Composer\Semver\ConstraintCode
public function matches(ConstraintInterface $provider) {
if ($provider instanceof self) {
return $this->matchSpecific($provider);
}
// turn matching around to find a match
return $provider->matches($this);
}