19declare(strict_types=1);
33 public function normalize($value): array|float|bool|
int|string|null
39 $normalized = parent::normalize($value);
40 $normalized[
'skill_service_enabled'] = $value->isSkillServiceEnabled();
48 if ($type !== \ilObjQuestionPool::class) {
53 $object = parent::denormalize($value, \ilObjQuestionPool::class);
54 $object->setSkillServiceEnabled($this->tt->bool($value[
'skill_service_enabled']));
Exception thrown when a value cannot be normalized or denormalized.
<\ilObjQuestionPool, array>
normalize($value)
Converts a value into a normalized form.
A Normalizer is responsible for converting a value into a normalized form and back.
denormalize(array|float|bool|int|string|null $normalized, string $type)
Converts a normalized form back into a value.