| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public function execute(): CommandResponse |
||
| 18 | { |
||
| 19 | $inventoryItemRepository = $this->container->get('kingdom.inventory_item_repository'); |
||
| 20 | $item = $inventoryItemRepository->findOneByUserAndSlot($this->user, $this->parameters); |
||
| 21 | $item->removeSlot(); |
||
| 22 | |||
| 23 | $inventoryItemRepository->flush(); |
||
| 24 | |||
| 25 | $this->result->setData(['slot' => $this->parameters]); |
||
| 26 | |||
| 27 | return $this->result; |
||
| 28 | } |
||
| 29 | } |
||
| 30 |