<?php

namespace App\Modules\EmailShip\Application;

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

class EmailShipFinder {

    private EmailShipRepository $repository;

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

    public function __invoke ($action, $query) {
        return $this->repository->find($action, $query);
    }
}