21 public function __construct(
23 private string $recipeId,
27 private string $blockName,
28 private int $recipeNetId
30 parent::__construct($typeId);
33 public function getRecipeId() :
string{
return $this->recipeId; }
41 public function getBlockName() :
string{
return $this->blockName; }
43 public function getRecipeNetId() :
int{
return $this->recipeNetId; }
47 $template = $in->getRecipeIngredient();
48 $input = $in->getRecipeIngredient();
49 $addition = $in->getRecipeIngredient();
51 $recipeNetId = $in->readRecipeNetId();
65 $out->putString($this->recipeId);
66 $out->putRecipeIngredient($this->
template);
67 $out->putRecipeIngredient($this->input);
68 $out->putRecipeIngredient($this->addition);
69 $out->putString($this->blockName);
70 $out->writeRecipeNetId($this->recipeNetId);