<?php

namespace App\Modules\PaxInformation\Application;

use App\Modules\PaxInformation\Domain\PaxInformationRepository;
use App\Modules\PaxInformation\Domain\IdPaxInformation;

class PaxInformationDeleter {

    private PaxInformationRepository $repository;

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

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