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