19declare(strict_types=1);
39 public function normalize($value): array|float|bool|
int|string|null
45 return $value->unpack($this->tt);
51 if (!in_array(Envelope::class, class_implements($type))) {
55 return $type::pack($value, $this->tt);
normalize($value)
Converts a value into a normalized form.
denormalize(array|float|bool|int|string|null $value, string $type)
Converts a normalized form back into a value.
__construct(private readonly Transformations $tt,)
Exception thrown when a value cannot be normalized or denormalized.
An envelope carries intermediate data between pipes before the final normalization step.
A Normalizer is responsible for converting a value into a normalized form and back.