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