Skip to content

Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️

606 B
Raw Blame
<?php

declare(strict_types=1);

namespace HiEvents\Services\Application\Handlers\Location;

use HiEvents\Http\DTO\QueryParamsDTO;
use HiEvents\Repository\Interfaces\LocationRepositoryInterface;
use Illuminate\Pagination\LengthAwarePaginator;

class GetLocationsHandler
{
    public function __construct(
        private readonly LocationRepositoryInterface $locationRepository,
    ) {}

    public function handle(int $organizerId, int $accountId, QueryParamsDTO $params): LengthAwarePaginator
    {
        return $this->locationRepository->findByOrganizerId($organizerId, $accountId, $params);
    }
}