src/ShopBundle/Payment/PaymentConfig/ShopPaymentConfigLoader.php
private function hasHigherPriority(
        ShopPaymentConfigRawValue $value1,
        ShopPaymentConfigRawValue $value2,
        $environment,
        $portalId
    ) {
        if ($this->hasHigherSourcePriority($value1, $value2)) {
            return true;
        }
        if ($this->hasHigherPortalPriority($value1, $value2, $portalId)) {
            return true;
        }
        if ($this->hasHigherEnvironmentPriority($value1, $value2, $environment)) {
            return true;
        }

        return false;
    }
private function hasHigherPriority(
        ShopPaymentConfigRawValue $value1,
        ShopPaymentConfigRawValue $value2,
        $environment,
        $portalId
    ) {
        if ($this->hasHigherSourcePriority($value1, $value2)) {
            return true;
        }
        if ($this->hasHigherPortalPriority($value1, $value2, $portalId)) {
            return true;
        }
        if ($this->hasHigherEnvironmentPriority($value1, $value2, $environment)) {
            return true;
        }

        return false;
    }
private function hasHigherPriority ( ShopPaymentConfigRawValue $ value1 , ShopPaymentConfigRawValue $ value2 , $ environment , $ portalId ) { if ( $ this -> hasHigherSourcePriority ( $ value1 , $ value2 ) ) { return true ; } if ( $ this -> hasHigherPortalPriority ( $ value1 , $ value2 , $ portalId ) ) { return true ; } if ( $ this -> hasHigherEnvironmentPriority ( $ value1 , $ value2 , $ environment ) ) { return true ; } return false ; }
Returns true if value1 has a higher priority than value2.

@param ShopPaymentConfigRawValue $value1
@param ShopPaymentConfigRawValue $value2
@param string                    $environment one of IPkgShopOrderPaymentConfig::ENVIRONMENT_*
@param string                    $portalId

@return bool
Returns true if value1 has a higher priority than value2 .