26 private ?array $unlockingIngredients
37 $unlockingContext = $in->getBool();
38 $unlockingIngredients =
null;
39 if(!$unlockingContext){
40 $unlockingIngredients = [];
42 $unlockingIngredients[] = $in->getRecipeIngredient();
46 return new self($unlockingIngredients);
50 $out->putBool($this->unlockingIngredients === null);
51 if($this->unlockingIngredients !==
null){
53 foreach($this->unlockingIngredients as $ingredient){
54 $out->putRecipeIngredient($ingredient);