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;
    }