27 private ?array $unlockingIngredients
39 $unlockingContext = $in->getBool();
40 $unlockingIngredients =
null;
41 if(!$unlockingContext){
42 $unlockingIngredients = [];
44 $unlockingIngredients[] = $in->getRecipeIngredient();
48 return new self($unlockingIngredients);
52 $out->putBool($this->unlockingIngredients === null);
53 if($this->unlockingIngredients !==
null){
55 foreach($this->unlockingIngredients as $ingredient){
56 $out->putRecipeIngredient($ingredient);