Implement snip sorting
This commit is contained in:
@ -4,8 +4,12 @@ namespace App\Dto;
|
||||
|
||||
readonly class SnipFilterRequest implements CachableDtoInterface
|
||||
{
|
||||
public const string SORT_NAME = 'name';
|
||||
public const string SORT_DATE = 'date';
|
||||
|
||||
public function __construct(
|
||||
public bool $onlyVisible = true,
|
||||
public ?string $sort = self::SORT_DATE,
|
||||
) {}
|
||||
|
||||
public function toArray(): array
|
||||
|
Reference in New Issue
Block a user