DefinitionConverter
FinalYes
Converts definition levels to actual values.
Initially this class was much simpler but in order to keep the performance and not to repeat the same operations over and over again, we generate templates for each definition level. It's a trade off between DX and performance but performance is more important here.
Methods
- toValue() : mixed
Methods
toValue()
public
toValue(Repetitions $repetitions, int $definitionLevel, mixed $value) : mixed
Parameters
- $repetitions : Repetitions
- $definitionLevel : int
- $value : mixed