oChoiceBlock = $oChoiceBlock; } /** @inheritdoc */ public function Convert(mixed $oData): ?RawFormat { if (is_null($oData) || is_array($oData)) { return null; } $aOptions = array_flip($this->oChoiceBlock->GetOption('choices')); return new RawFormat($aOptions[$oData]); } }