Download the PHP package dimitrilahaye/dodo-entity-serializer without Composer
On this page you can find all versions of the php package dimitrilahaye/dodo-entity-serializer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dimitrilahaye/dodo-entity-serializer
More information about dimitrilahaye/dodo-entity-serializer
Files in dimitrilahaye/dodo-entity-serializer
Package dodo-entity-serializer
Short Description Dodo is back and he's very angry (and hungry.. huh)! With him, you can now convert some entity-like objects into json and some json into entity-like object! And he automatically manages objects array and array-like json. So cute :)
License proprietary
Homepage https://github.com/dimitrilahaye/Dodo-Entity-Serializer
Informations about the package dodo-entity-serializer
Dodo Entity Serializer Library
Dodo is back and he's very angry (and hungry.. huh)! With him, you can now convert some entity-like objects into json and some json into entity-like object! And he automatically manages objects array and array-like json. So cute :)
Table of Contents
- EntitySerializer
- getInstance
- jsonToObject
- objectToJson
- Coming Soon
EntitySerializer
General class for DodoEntitySerializer. Provides all the methods to :
- Convert Entity Object or Array of Entities Objects to JSON
- Convert JSON to Entity Object or array of Entities Objects JSON
- Full name: \DodoPhpLab\DodoEntitySerializer\Classes\EntitySerializer
getInstance
- This method is static.
jsonToObject
Returns an object from a json and the class's namespace of the object we want to return.
Parameters:
Parameter | Type | Description |
---|---|---|
$classNamespace |
string | the class name with namespace. |
$json |
string | the json to transform in object. |
Return Value:
array of Entity-type objects or one Entity-type object.
objectToJson
Returns a string formatted json from an object and his class's namespace.
Parameters:
Parameter | Type | Description |
---|---|---|
$classNamespace |
string | the class name with namespace. |
$object |
mixed[] | the object to transform into json. |
Return Value:
the string formatted json representation of the $object passed in argument.
Coming Soon
Handle add... methods (there : addSubscriber with User object in argument)
See how to manage null values
Manage exceptions
- Write some things into README
This document was automatically generated from source code comments on 2016-05-25 using phpDocumentor and cvuorinen/phpdoc-markdown-public