/** * @param Basket $basket * @return BasketItemUpdateAction */ public function setBasketItem(Basket $basket) { if (!$basket->isOwnedBy($this->user)) { throw new NotFoundHttpException("Basket item does not exists"); } parent::setObject($basket); return $this; }
/** * @param Order $order * @return OrderUpdateAction */ public function setOrder(Order $order) { parent::setObject($order); return $this; }
/** * @param Product $product * @return ProductUpdateAction */ public function setProduct(Product $product) { parent::setObject($product); return $this; }
/** * @param Supplier $supplier * @return SupplierUpdateAction */ public function setSupplier(Supplier $supplier) { parent::setObject($supplier); return $this; }