public function handle(ItemRepository $repository) { $item = new Item(new Title($this->title), new Description($this->description), new Price((double) $this->price), new Quantity((int) $this->quantity)); $repository->create($item); return $item; }