КГ
Есть Embeddable классы для объектов, да и в целом чтобы замепить поля тащить сериалайзер это не самая умная идея
Size: a a a
КГ
DS
Ш
КГ
DS
КГ
DS
DS
DS
DS
class RoomOptions
{
public function __construct(
private ?bool $fast = null,
private ?int $minRating = null,
// use for private game
private ?string $enemy = null,
)
{
}
public function getFast(): ?bool
{
return $this->fast;
}
public function getMinRating(): ?int
{
return $this->minRating;
}
/**public function getEnemy(): ?string
{
return $this->enemy;
}
}
DS