Total Complexity | 2 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | class UseCase |
||
12 | { |
||
13 | /** @var Repository */ |
||
14 | private $repository; |
||
15 | |||
16 | /** @var Factory */ |
||
17 | private $factory; |
||
18 | |||
19 | public function __construct(Repository $repository, Factory $factory) |
||
20 | { |
||
21 | $this->repository = $repository; |
||
22 | $this->factory = $factory; |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * @param Command $command |
||
27 | * @throws InvalidCommandDataException |
||
28 | */ |
||
29 | public function handle(Command $command): void |
||
34 | } |
||
35 | } |
||
36 |