basic API docs
[awesomized/ext-ion] / docs / src / ion / Serializer / PHP / __construct.md
1 # void ion\Serializer\PHP::__construct([?ion\Writer\Options $writerOptions = NULL, [bool $multiSequence = false, [bool $callMagicSerialize = true, [?string $callCustomSerialize = NULL]]]])
2
3 Create a new PHP ION serializer.
4
5
6
7
8
9
10 ## Params:
11
12 * Optional ?ion\Writer\Options $writerOptions = NULL
13 Writer options.
14 * Optional bool $multiSequence = false
15 Whether to write the top level array as multiple ION sequences.
16 * Optional bool $callMagicSerialize = true
17 Whether to call magic __serialize() methods on objects to serialize.
18 * Optional ?string $callCustomSerialize = NULL
19 Whether and which custom serialize method to call on objects to serialize.
20
21