taktik - laravel
This commit is contained in:
19
app/Services/QueryRequestModifiers/OrderableDTO.php
Normal file
19
app/Services/QueryRequestModifiers/OrderableDTO.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Services\QueryRequestModifiers;
|
||||
|
||||
/**
|
||||
* @template T of OrderableDTO
|
||||
*/
|
||||
interface OrderableDTO
|
||||
{
|
||||
public function getColumn(): string;
|
||||
public function getDirection(): SortDirection;
|
||||
|
||||
/**
|
||||
* @return T
|
||||
*/
|
||||
public static function createFromValues(string $column, SortDirection $sortDirection): self;
|
||||
}
|
||||
Reference in New Issue
Block a user