public function matches(LinkConstraintInterface $provider) { if ($provider instanceof MultiConstraint) { return $provider->matches($this); } elseif ($provider instanceof $this) { return $this->matchSpecific($provider); } return true; }
/** * @param LinkConstraintInterface $provider * * @return bool */ public function matches(LinkConstraintInterface $provider) { if ($provider instanceof MultiConstraint) { // turn matching around to find a match return $provider->matches($this); } elseif ($provider instanceof $this) { // see note at bottom of this class declaration return $this->matchSpecific($provider); } return true; }