src/Negotiator/Negotiator.php
private function matchSingleClientPreference($fromField, PreferenceInterface $clientPreference, array $matchingList)
    {
        foreach ($this->matcherList as $matcher) {
            if ($matcher->hasMatch($fromField, $matchingList, $clientPreference)) {
                $matchingList = $matcher->match($fromField, $matchingList, $clientPreference);

                break;
            }
        }

        return $matchingList;
    }
private function matchSingleClientPreference($fromField, PreferenceInterface $clientPreference, array $matchingList)
    {
        foreach ($this->matcherList as $matcher) {
            if ($matcher->hasMatch($fromField, $matchingList, $clientPreference)) {
                $matchingList = $matcher->match($fromField, $matchingList, $clientPreference);

                break;
            }
        }

        return $matchingList;
    }
private function matchSingleClientPreference ( $ fromField , PreferenceInterface $ clientPreference , array $ matchingList ) { foreach ( $ this -> matcherList as $ matcher ) { if ( $ matcher -> hasMatch ( $ fromField , $ matchingList , $ clientPreference ) ) { $ matchingList = $ matcher -> match ( $ fromField , $ matchingList , $ clientPreference ) ; break ; } } return $ matchingList ; }
Match a single client variant to the server variants.

@param string $fromField
@param PreferenceInterface $clientPreference
@param MatchedPreferenceInterface[] $matchingList

@return MatchedPreferenceInterface[]
Match a single client variant to the server variants .