<?php

namespace App\Modules\EmailShip\Application;

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

class EmailShipDeleter {

    private EmailShipRepository $repository;

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

    public function __invoke (IdEmailShip $id) {
        return $this->repository->delete($id);
    }
}