Total Complexity | 3 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
22 | final class DeleteUserHandler implements CommandHandlerProtocol |
||
23 | { |
||
24 | private DoctrineUserRepository $repository; |
||
25 | |||
26 | public function __construct(DoctrineUserRepository $repository) |
||
27 | { |
||
28 | $this->repository = $repository; |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * @throws NonUniqueResultException |
||
33 | * @throws ORMException |
||
34 | */ |
||
35 | public function __invoke(DeleteUser $command): void |
||
44 | } |
||
45 | } |
||
46 |