<?php

/*
 * Copyright Iain Cambridge 2023-2025.
 *
 * Use of this software is governed by the Fair Core License, Version 1.0, ALv2 Future License included in the LICENSE.md file and at https://github.com/BillaBear/billabear/blob/main/LICENSE.
 */

namespace BillaBear\Filters;

use Parthenon\Athena\Filters\BoolFilter;
use Parthenon\Athena\Filters\ContainsFilter;
use Parthenon\Athena\Filters\ExactChoiceFilter;

class CountryList extends AbstractFilterList
{
    protected function getFilters(): array
    {
        return [
            'name' => [
                'field' => 'name',
                'filter' => ContainsFilter::class,
            ],
            'code' => [
                'field' => 'isoCode',
                'filter' => ExactChoiceFilter::class,
            ],
            'collecting' => [
                'field' => 'collecting',
                'filter' => BoolFilter::class,
            ],
            'registrationRequired' => [
                'field' => 'registrationRequired',
                'filter' => BoolFilter::class,
            ],
        ];
    }
}
