<?php namespace Symfony\Component\Serializer\Context\Encoder; use Symfony\Component\Serializer\Context\ContextBuilderInterface; use Symfony\Component\Serializer\Context\ContextBuilderTrait; use Symfony\Component\Serializer\Encoder\YamlEncoder; use Symfony\Component\Yaml\Yaml; final class YamlEncoderContextBuilder implements ContextBuilderInterface { use ContextBuilderTrait; public function withInlineThreshold(?int $inlineThreshold): static { return $this->with(YamlEncoder::YAML_INLINE, $inlineThreshold); } public function withIndentLevel(?int $indentLevel): static { return $this->with(YamlEncoder::YAML_INDENT, $indentLevel); } public function withFlags(?int $flags): static { return $this->with(YamlEncoder::YAML_FLAGS, $flags); } public function withPreservedEmptyObjects(?bool $preserveEmptyObjects): static { return $this->with(YamlEncoder::PRESERVE_EMPTY_OBJECTS, $preserveEmptyObjects); } }