<?php

declare(strict_types=1);

namespace ACA\GravityForms\Search\Comparison\Entry;

use ACA\GravityForms\Search;
use ACP;
use ACP\Search\Value;

class Number extends Search\Comparison\Entry
{
    public function __construct(string $field)
    {
        $operators = new ACP\Search\Operators([
            ACP\Search\Operators::EQ,
            ACP\Search\Operators::NEQ,
            ACP\Search\Operators::GT,
            ACP\Search\Operators::LT,
            ACP\Search\Operators::BETWEEN,
            ACP\Search\Operators::IS_EMPTY,
            ACP\Search\Operators::NOT_IS_EMPTY,
        ]);

        parent::__construct($field, $operators, Value::DECIMAL);
    }

}
