products[$id] = $name; } // Product op eerst vrije plaats ([]) toevoegen public function getProducts() { return $this->products; } // Gewoon productenarray teruggeven } ?>