-
Notifications
You must be signed in to change notification settings - Fork 4
Saving & Loading
Matthew Jordan edited this page Apr 23, 2022
·
2 revisions
By default, the MarshalTrait trait comes with support for two file formats:
-
json- This comes with the static methodloadFromJson(string $fileName, ...)and the class methodsaveToJson(string $fileName, ...). -
yaml- This comes with the static methodloadFromYaml(string $fileName, ...)and the class methodsaveToYaml(string $fileName, ...).
Each contain arguments that wrap their respective encoding and decoding methods.