Total Complexity | 3 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | final class DeleteMediaHandler |
||
12 | { |
||
13 | private $repository; |
||
14 | private $storage; |
||
15 | |||
16 | public function __construct(MediaRepository $repository, Storage $storage) |
||
17 | { |
||
18 | $this->repository = $repository; |
||
19 | $this->storage = $storage; |
||
20 | } |
||
21 | |||
22 | /** |
||
23 | * @throws MediaNotFound |
||
24 | */ |
||
25 | public function __invoke(DeleteMedia $command): void |
||
36 | } |
||
37 | } |
||
38 |