protected function satisfyVersion(Link $require, $normalizedVersion)
    {
        $constraintSame = $this->versionParser->parseConstraints($normalizedVersion);
        $sameVersion = (bool) $require->getConstraint()->matches($constraintSame);

        $consNormalizedVersion = FilterUtil::getVersionConstraint($normalizedVersion, $this->versionParser);
        $constraint = FilterUtil::getVersionConstraint($consNormalizedVersion->getPrettyString(), $this->versionParser);

        return (bool) $require->getConstraint()->matches($constraint) || $sameVersion;
    }
protected function satisfyVersion(Link $require, $normalizedVersion)
    {
        $constraintSame = $this->versionParser->parseConstraints($normalizedVersion);
        $sameVersion = (bool) $require->getConstraint()->matches($constraintSame);

        $consNormalizedVersion = FilterUtil::getVersionConstraint($normalizedVersion, $this->versionParser);
        $constraint = FilterUtil::getVersionConstraint($consNormalizedVersion->getPrettyString(), $this->versionParser);

        return (bool) $require->getConstraint()->matches($constraint) || $sameVersion;
    }
protected function satisfyVersion ( Link $ require , $ normalizedVersion ) { $ constraintSame = $ this -> versionParser -> parseConstraints ( $ normalizedVersion ) ; $ sameVersion = ( bool ) $ require -> getConstraint ( ) -> matches ( $ constraintSame ) ; $ consNormalizedVersion = FilterUtil :: getVersionConstraint ( $ normalizedVersion , $ this -> versionParser ) ; $ constraint = FilterUtil :: getVersionConstraint ( $ consNormalizedVersion -> getPrettyString ( ) , $ this -> versionParser ) ; return ( bool ) $ require -> getConstraint ( ) -> matches ( $ constraint ) || $ sameVersion ; }
Check if the require dependency has a satisfactory version.

@param Link   $require           The require link defined in root package
@param string $normalizedVersion The normalized version

@return bool
Check if the require dependency has a satisfactory version .