void ion\Serializer\PHP::__construct([?ion\Writer\Options $writerOptions = NULL, [bool $multiSequence = false, [bool $callMagicSerialize = true, [?string $callCustomSerialize = NULL]]]])
Create a new PHP ION serializer.
Params:#
- Optional ?ion\Writer\Options $writerOptions = NULL
Writer options.
- Optional bool $multiSequence = false
Whether to write the top level array as multiple ION sequences.
- Optional bool $callMagicSerialize = true
Whether to call magic __serialize() methods on objects to serialize.
- Optional ?string $callCustomSerialize = NULL
Whether and which custom serialize method to call on objects to serialize.