<?php
namespace Symfony\Component\Serializer\Context\Normalizer;
use Symfony\Component\Serializer\Context\ContextBuilderInterface;
use Symfony\Component\Serializer\Context\ContextBuilderTrait;
use Symfony\Component\Serializer\Normalizer\ProblemNormalizer;
final class ProblemNormalizerContextBuilder implements ContextBuilderInterface
{
use ContextBuilderTrait;
public function withTitle(?string $title): static
{
return $this->with(ProblemNormalizer::TITLE, $title);
}
public function withType(?string $type): static
{
return $this->with(ProblemNormalizer::TYPE, $type);
}
public function withStatusCode(int|string|null $statusCode): static
{
return $this->with(ProblemNormalizer::STATUS, $statusCode);
}
}