Method Serializer.Serializable()->_serialize_variable()
classSerializer.Serializable
- Method
_serialize_variable
protectedvoid_serialize_variable(function(mixed,string,type,multiset|zero,multiset|zero:void)serializer,mixedvalue,stringsymbol,typesymbol_type,multiset|zerosymbol_annotations,multiset|zeroinherited_annotations)- Description
Default serialization function for variables.
- Parameter
serializer Function to be called in turn.
- Parameter
value Value of the variable.
- Parameter
symbol Variable name.
- Parameter
symbol_type Type of the variable.
- Parameter
symbol_annotations Annotations directly on the variable.
- Parameter
inherited_annotations Effective annotations along the variable's inherit path.
This function is typically called from _serialize(), and just does
serializer(value, symbol, symbol_type, symbol_annotations, inherited_annotations);It is provided for overloading for eg filtering or validation purposes.
- See also