<?php

declare(strict_types=1);

namespace ACP\Search\Comparison\Comment;

use AC;
use AC\Helper\Select\Options;
use ACP\Search\Comparison\Values;
use ACP\Search\Operators;

class Approved extends Field implements Values
{
    public function __construct()
    {
        $operators = new Operators([
            Operators::EQ,
        ]);

        parent::__construct($operators);
    }

    public function get_values(): Options
    {
        return AC\Helper\Select\Options::create_from_array([
            __('Unapproved'),
            _x('Approved', 'comment status'),
        ]);
    }

    protected function get_field(): string
    {
        return 'comment_approved';
    }

}
