Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
23 | public function handle(Command $command) |
||
24 | { |
||
25 | $domain = $this->domainRepository->getById($command->getDomainId()); |
||
26 | |||
27 | $useCase = new \Hexarchium\CoreDomain\Model\Domain\Entity\UseCase( |
||
28 | $command->getUseCaseId(), |
||
29 | new Type($command->getUseCaseType()) |
||
30 | ); |
||
31 | |||
32 | $domain->addUseCase($useCase); |
||
33 | } |
||
34 | } |
||
35 |