Class SerializationHelper Contains basic serialization helpers used in summary() methods.
integer|null phpGPX\Helpers\SerializationHelper::integerOrNull($value)
Returns integer or null.
float|null phpGPX\Helpers\SerializationHelper::floatOrNull($value)
Returns float or null.
null|string phpGPX\Helpers\SerializationHelper::stringOrNull($value)
Returns string or null
array|null phpGPX\Helpers\SerializationHelper::serialize(\phpGPX\Models\Summarizable|array<mixed,\phpGPX\Models\Summarizable> $object)
Recursively traverse Summarizable objects and returns their array representation according summary() method.
| $object **phpGPX\Models\Summarizable | array<mixed,\phpGPX\Models\Summarizable>** |