<?php

namespace App\Modules\EmailShip\Application;

use App\Modules\EmailShip\Domain\EmailShipRepository;
use App\Modules\EmailShip\Domain\IdEmailShip;

class EmailShipIndexer {

    private EmailShipRepository $repository;

    public function __construct(EmailShipRepository $repository) {
        $this->repository = $repository;
    }

    public function __invoke (IdEmailShip $idEmailShip) {
        return $this->repository->index($idEmailShip);
    }
}