protected function checkNotIncompatibleParams(ParamInterface $param)
    {
        if (null === $param->getValue($this->getRequest(), null)) {
            return;
        }

        $params = $this->getParams();
        foreach ($param->getIncompatibilities() as $incompatibleParamName) {
            if (!array_key_exists($incompatibleParamName, $params)) {
                throw new \InvalidArgumentException(sprintf("No @ParamInterface configuration for parameter '%s'.", $incompatibleParamName));
            }
            $incompatibleParam = $params[$incompatibleParamName];

            if (null !== $incompatibleParam->getValue($this->getRequest(), null)) {
                $exceptionMessage = sprintf(
                    "'%s' param is incompatible with %s param.",
                    $param->getName(),
                    $incompatibleParam->getName()
                );

                throw new BadRequestHttpException($exceptionMessage);
            }
        }
    }
protected function checkNotIncompatibleParams(ParamInterface $param)
    {
        if (null === $param->getValue($this->getRequest(), null)) {
            return;
        }

        $params = $this->getParams();
        foreach ($param->getIncompatibilities() as $incompatibleParamName) {
            if (!array_key_exists($incompatibleParamName, $params)) {
                throw new \InvalidArgumentException(sprintf("No @ParamInterface configuration for parameter '%s'.", $incompatibleParamName));
            }
            $incompatibleParam = $params[$incompatibleParamName];

            if (null !== $incompatibleParam->getValue($this->getRequest(), null)) {
                $exceptionMessage = sprintf(
                    "'%s' param is incompatible with %s param.",
                    $param->getName(),
                    $incompatibleParam->getName()
                );

                throw new BadRequestHttpException($exceptionMessage);
            }
        }
    }
protected function checkNotIncompatibleParams ( ParamInterface $ param ) { if ( null === $ param -> getValue ( $ this -> getRequest ( ) , null ) ) { return ; } $ params = $ this -> getParams ( ) ; foreach ( $ param -> getIncompatibilities ( ) as $ incompatibleParamName ) { if ( ! array_key_exists ( $ incompatibleParamName , $ params ) ) { throw new \ InvalidArgumentException ( sprintf ( "No @ParamInterface configuration for parameter '%s'." , $ incompatibleParamName ) ) ; } $ incompatibleParam = $ params [ $ incompatibleParamName ] ; if ( null !== $ incompatibleParam -> getValue ( $ this -> getRequest ( ) , null ) ) { $ exceptionMessage = sprintf ( "'%s' param is incompatible with %s param." , $ param -> getName ( ) , $ incompatibleParam -> getName ( ) ) ; throw new BadRequestHttpException ( $ exceptionMessage ) ; } } }
Check if current param is not in conflict with other parameters
according to the "incompatibles" field.

@param ParamInterface $param the configuration for the param fetcher

@throws InvalidArgumentException
@throws BadRequestHttpException

@internal
Check if current param is not in conflict with other parameters according to the incompatibles field .