<?php

namespace App\Filters;

use App\Filters\ApiFilter;

class CityFilter extends ApiFilter {
    protected $safeParms = [
        'locationName' => ['eq'],
        'locationCountry' => ['eq'],
        'id' => ['eq']
    ];

    protected $columnMap = [
        'locationName' => 'location_name',
        'locationCountry' => 'location_country'
    ];

    protected $operatorMap = [
        'eq' => '=',
        'lt' => '<',
        'lte' => '<=',
        'gt' => '>',
        'gte' => '>=',
    ];
}