public function remove(SKU $sku) { if (!array_key_exists((string) $sku, $this->items)) { throw new ProductNotInCartException(); } unset($this->items[(string) $sku]); }