2015-12-06 13:58:49 -05:00
|
|
|
<?php
|
|
|
|
|
2017-06-10 22:28:44 -05:00
|
|
|
namespace Pterodactyl\Contracts\Criteria;
|
2015-12-06 13:58:49 -05:00
|
|
|
|
2022-10-14 10:59:20 -06:00
|
|
|
use Illuminate\Database\Eloquent\Model;
|
2017-06-10 22:28:44 -05:00
|
|
|
use Pterodactyl\Repositories\Repository;
|
2015-12-06 13:58:49 -05:00
|
|
|
|
2017-06-10 22:28:44 -05:00
|
|
|
interface CriteriaInterface
|
|
|
|
{
|
2017-03-19 19:36:50 -04:00
|
|
|
/**
|
2017-06-10 22:28:44 -05:00
|
|
|
* Apply selected criteria to a repository call.
|
2017-03-19 19:36:50 -04:00
|
|
|
*/
|
2022-10-14 10:59:20 -06:00
|
|
|
public function apply(Model $model, Repository $repository): mixed;
|
2015-12-06 13:58:49 -05:00
|
|
|
}
|