DeleteUserUseCase.php 479 Bytes
Newer Older
Jacob Priddy's avatar
Jacob Priddy committed
1
2
3
4
5
<?php


namespace Source\UseCases\Users\DeleteUser;

Jacob Priddy's avatar
Jacob Priddy committed
6
7
interface DeleteUserUseCase
{
Jacob Priddy's avatar
Jacob Priddy committed
8
    /**
Jacob Priddy's avatar
Jacob Priddy committed
9
10
11
     * @param string                                      $userId
     * @param \Source\UseCases\Users\DeleteUser\Presenter $presenter
     * @throws \Source\Exceptions\DeleteFailedException
Jacob Priddy's avatar
Jacob Priddy committed
12
     * @throws \Source\Exceptions\EntityNotFoundException
Jacob Priddy's avatar
Jacob Priddy committed
13
     * @throws \Source\Exceptions\AuthorizationException
Jacob Priddy's avatar
Jacob Priddy committed
14
15
16
     */
    public function delete(string $userId, Presenter $presenter): void;
}