17 lines
457 B
PHP
17 lines
457 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Modules\Movies\Services\Contracts;
|
||
|
|
|
||
|
|
use Illuminate\Contracts\Pagination\LengthAwarePaginator;
|
||
|
|
use App\Modules\Movies\Models\Director;
|
||
|
|
|
||
|
|
interface GetDirectorWithMoviesServiceInterface
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* @param int $id Director ID
|
||
|
|
* @param array{q?: string|null, per_page?: int|null} $params
|
||
|
|
* @return array{entity: Director, movies: LengthAwarePaginator}
|
||
|
|
*/
|
||
|
|
public function handle(int $id, array $params = []): array;
|
||
|
|
}
|