/** * @param Product $product */ public function categorise(Product $product) { $product->taxable(false); }
/** * @param $sku * @param $name * @param $price * @param array $actions */ public function addQuick($sku, $name, $price, $actions = []) { $price = new Money($price, $this->jurisdiction->currency()); $product = new Product($sku, $name, $price, $this->basket->rate()); $product->action($this->productClosure($actions)); $this->basket->add($product); $this->reconcile(); }