21 public function __construct(
22 private string $materialId,
23 private string $color,
24 private string $itemId
27 public function getMaterialId() :
string{
return $this->materialId; }
29 public function getColor() :
string{
return $this->color; }
31 public function getItemId() :
string{
return $this->itemId; }
37 return new self($materialId, $color, $itemId);
41 $out->putString($this->materialId);
42 $out->putString($this->color);
43 $out->putString($this->itemId);