learning-center/app/SharedKernel/TimeSorting.php

21 lines
318 B
PHP
Raw Permalink Normal View History

2024-09-08 13:48:26 +03:00
<?php
declare(strict_types=1);
namespace App\SharedKernel;
use App\SharedKernel\Structs\Enum;
final class TimeSorting extends Enum
{
public static function newest(): self
{
return new self('newest');
}
public static function oldest(): self
{
return new self('oldest');
}
}