<?php

declare (strict_types=1);
namespace PoPCMSSchema\Users\FilterInputs;

use PoP\ComponentModel\FilterInputs\AbstractValueToQueryFilterInput;
/** @internal */
class UsernameOrUsernamesFilterInput extends AbstractValueToQueryFilterInput
{
    protected function getQueryArgKey() : string
    {
        return 'username';
    }
    protected function getValue(mixed $value) : mixed
    {
        return \is_array($value) ? $value : [$value];
    }
}
