appendSet(["a"]); dump($cartesianProduct->compute()); $cartesianProduct = new CartesianProduct(); $cartesianProduct->appendSet(["a"]); $cartesianProduct->appendSet(["b"]); dump($cartesianProduct->compute()); } }