*/ final readonly class PersonIdentifierEntityRender implements ChillEntityRenderInterface { public function __construct(private PersonIdentifierManagerInterface $identifierManager) {} public function renderBox(mixed $entity, array $options): string { return $this->renderString($entity, $options); } public function renderString(mixed $entity, array $options): string { $worker = $this->identifierManager->buildWorkerByPersonIdentifierDefinition($entity->getDefinition()); return $worker->renderAsString($entity); } public function supports(object $entity, array $options): bool { return $entity instanceof PersonIdentifier; } }