public function setRangedFromType($rangedFromType)
    {
        $allowedTypes = [self::RANGED_FROM_TYPE_GREATER, self::RANGED_FROM_TYPE_GREATER_OR_EQUAL];

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

        $this->rangedFromType = $rangedFromType;

        return $this;
    }
public function setRangedFromType($rangedFromType)
    {
        $allowedTypes = [self::RANGED_FROM_TYPE_GREATER, self::RANGED_FROM_TYPE_GREATER_OR_EQUAL];

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

        $this->rangedFromType = $rangedFromType;

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

@param string $rangedFromType AbstractRangeOrSingleFilter::RANGED_FROM_TYPE_*

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