public function setRangedToType($rangedToType)
    {
        $allowedTypes = [self::RANGED_TO_TYPE_LESS, self::RANGED_TO_TYPE_LESS_OR_EQUAL];

        if (!is_string($rangedToType) || !in_array($rangedToType, $allowedTypes)) {
            throw new InvalidArgumentException(sprintf(
                'Invalid "ranged to type" argument. Allowed types: [%s].', implode(', ', $allowedTypes)
            ));
        }

        $this->rangedToType = $rangedToType;

        return $this;
    }
public function setRangedToType($rangedToType)
    {
        $allowedTypes = [self::RANGED_TO_TYPE_LESS, self::RANGED_TO_TYPE_LESS_OR_EQUAL];

        if (!is_string($rangedToType) || !in_array($rangedToType, $allowedTypes)) {
            throw new InvalidArgumentException(sprintf(
                'Invalid "ranged to type" argument. Allowed types: [%s].', implode(', ', $allowedTypes)
            ));
        }

        $this->rangedToType = $rangedToType;

        return $this;
    }
public function setRangedToType ( $ rangedToType ) { $ allowedTypes = [ self :: RANGED_TO_TYPE_LESS , self :: RANGED_TO_TYPE_LESS_OR_EQUAL ] ; if ( ! is_string ( $ rangedToType ) || ! in_array ( $ rangedToType , $ allowedTypes ) ) { throw new InvalidArgumentException ( sprintf ( 'Invalid "ranged to type" argument. Allowed types: [%s].' , implode ( ', ' , $ allowedTypes ) ) ) ; } $ this -> rangedToType = $ rangedToType ; return $ this ; }
Sets "to" type for the filter treated as ranged.

@param string $rangedToType AbstractRangeOrSingleFilter::RANGED_TO_TYPE_*

@return static
@throws InvalidArgumentException On invalid argument
Sets to type for the filter treated as ranged .