an example service for typed objects
package | Amfphp_Examples_ExampleService |
---|---|
author | Ariel Sommeria-klein |
receiveAndReturnUserVo1(\UserVo1 $user) : \UserVo1
receiveAndReturnUserVo2(\type $user) : \type
The idea here is that you send an object that is typed(see client example prjects) and it will be returned. This allows you to use typing on the client side without needing to create corresponding PHP VO classes. If you do this exclusively, you can disable the CustomClassConverter plugin, which will increase performance. amfPHP does this by using the reserved '_explicitType' marker on anonymous PHP objects.
\type
\type