| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 41 | public function getCommand(ItemDTO $itemDTO): CommandInterface |
||
| 42 | { |
||
| 43 | $command = $this->getCommandInstance($itemDTO->getId(), 'Item'); |
||
| 44 | return $command->newInstanceArgs([ |
||
| 45 | $itemDTO->getId() ?? Uuid::uuid4(), |
||
| 46 | $itemDTO->getName(), |
||
| 47 | $itemDTO->getCategoryId(), |
||
| 48 | $itemDTO->getYear(), |
||
| 49 | $itemDTO->getFormat(), |
||
| 50 | $itemDTO->getAuthor(), |
||
| 51 | $itemDTO->getPublisher(), |
||
| 52 | $itemDTO->getDescription(), |
||
| 53 | $itemDTO->getStore(), |
||
| 54 | $itemDTO->getUrl(), |
||
| 55 | $itemDTO->getCollections() |
||
| 56 | ]); |
||
| 58 | } |