21 lines
398 B
PHP
21 lines
398 B
PHP
<?php
|
|
|
|
namespace App\Interfaces;
|
|
|
|
interface OrderableInterface
|
|
{
|
|
/**
|
|
* Returns the priority order value.
|
|
*
|
|
* @return integer
|
|
*/
|
|
public function getPriorityOrder(): int;
|
|
|
|
/**
|
|
* Returns the grouping field used for ordering.
|
|
* Returns null if the order is global.
|
|
*
|
|
* @return string|null
|
|
*/
|
|
public function getOrderGroupField(): ?string;
|
|
}
|