Skip to the content.

phpGPX\Helpers\SerializationHelper

Class SerializationHelper Contains basic serialization helpers used in summary() methods.

Methods

integerOrNull

integer|null phpGPX\Helpers\SerializationHelper::integerOrNull($value)

Returns integer or null.

Arguments

floatOrNull

float|null phpGPX\Helpers\SerializationHelper::floatOrNull($value)

Returns float or null.

Arguments

stringOrNull

null|string phpGPX\Helpers\SerializationHelper::stringOrNull($value)

Returns string or null

Arguments

serialize

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.

Arguments