mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-25 18:45:27 -06:00
Remove no-longer used methods in OrderableField enum
This commit is contained in:
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Shlinkio\Shlink\Core\ShortUrl\Model;
|
||||
|
||||
use function Shlinkio\Shlink\Core\ArrayUtils\contains;
|
||||
|
||||
enum OrderableField: string
|
||||
{
|
||||
case LONG_URL = 'longUrl';
|
||||
@@ -12,17 +10,4 @@ enum OrderableField: string
|
||||
case TITLE = 'title';
|
||||
case VISITS = 'visits';
|
||||
case NON_BOT_VISITS = 'nonBotVisits';
|
||||
|
||||
public static function isBasicField(string $value): bool
|
||||
{
|
||||
return contains(
|
||||
$value,
|
||||
[self::LONG_URL->value, self::SHORT_CODE->value, self::DATE_CREATED->value, self::TITLE->value],
|
||||
);
|
||||
}
|
||||
|
||||
public static function isVisitsField(string $value): bool
|
||||
{
|
||||
return $value === self::VISITS->value || $value === self::NON_BOT_VISITS->value;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user