| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | public function getCommand(CollectionDTO $collectionDTO): CommandInterface |
||
| 34 | { |
||
| 35 | $command = $this->getCommandInstance($collectionDTO->getId(), 'Collection'); |
||
| 36 | return $command->newInstanceArgs([ |
||
| 37 | $collectionDTO->getId() ?? Uuid::uuid4(), |
||
| 38 | $collectionDTO->getName(), |
||
| 39 | $collectionDTO->getDescription() |
||
| 40 | ]); |
||
| 42 | } |