public function handlePickUpBasket(PickUpBasket $command)
 {
     $basket = Basket::pickUpBasket($command->getBasketId());
     $this->repository->add($basket);
 }
Exemplo n.º 2
0
 public static function pickUpBasket(BasketId $basketId)
 {
     $basket = new Basket();
     $basket->pickUp($basketId);
     return $basket;
 }