public function getName() { return $this->name; }
public function remFromBasket(Product $product) { if ($this->basket[$product->getName()]) { unset($this->basket[$product->getName()]); return true; } else { throw new Exception('Product not in basket!'); } }