| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | public function fillItemDTO(Item $item): ItemDTO |
||
| 21 | { |
||
| 22 | return new ItemDTO( |
||
| 23 | $item->getId()->toString(), |
||
| 24 | $item->getName(), |
||
| 25 | $item->getCategory()->getId()->toString(), |
||
| 26 | $item->getYear(), |
||
| 27 | $item->getFormat(), |
||
| 28 | $item->getAuthor(), |
||
| 29 | $item->getPublisher(), |
||
| 30 | $item->getDescription(), |
||
| 31 | $item->getStore(), |
||
| 32 | $item->getUrl(), |
||
| 33 | $item->getCollections()->toArray() |
||
| 34 | ); |
||
| 58 | } |