| Conditions | 6 | 
| Paths | 24 | 
| Total Lines | 23 | 
| Code Lines | 15 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 27 | public function handle(DummyCommand $command): void  | 
            ||
| 28 |     { | 
            ||
| 29 |         try { | 
            ||
| 30 |             if ($command instanceof InitiatorCommand) { | 
            ||
| 31 | $aggregate = DummyAggregate::create($command->aggregateRootId());  | 
            ||
| 32 | |||
| 33 | return;  | 
            ||
| 34 | }  | 
            ||
| 35 | |||
| 36 | /** @var DummyAggregate $aggregate */  | 
            ||
| 37 | $aggregate = $this->repository->retrieve($command->aggregateRootId());  | 
            ||
| 38 | |||
| 39 |             if ($command instanceof PerformDummyTask) { | 
            ||
| 40 | $aggregate->performDummyTask();  | 
            ||
| 41 |             } elseif ($command instanceof IgnoredCommand) { | 
            ||
| 42 | $aggregate->dontDoAnything();  | 
            ||
| 43 |             } elseif ($command instanceof ExceptionInducingCommand) { | 
            ||
| 44 | $aggregate->throwAnException();  | 
            ||
| 45 |             } elseif ($command instanceof DummyIncrementCommand) { | 
            ||
| 46 | $aggregate->increment();  | 
            ||
| 47 | }  | 
            ||
| 48 |         } finally { | 
            ||
| 49 | $this->repository->persist($aggregate);  | 
            ||
| 50 | }  | 
            ||
| 53 |