ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
Legacy11UUIDNormalizer.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
25
37{
38 #[\Override]
39 public function normalize($value): array|float|bool|int|string|null
40 {
41 throw new NormalizingException('Normalizing of legacy data is not supported');
42 }
43
44 #[\Override]
45 public function denormalize(array|float|bool|int|string|null $value, string $type): Uuid
46 {
47 return parent::denormalize(str_replace('_', '-', (string) $value), $type);
48 }
49}
denormalize(array|float|bool|int|string|null $value, string $type)
Converts a normalized form back into a value.
Exception thrown when a value cannot be normalized or denormalized.