an example service for typed objects

package | Amfphp_Examples_ExampleService
author | Ariel Sommeria-klein

### Methods

## This method expects a UserVo1 object.

    receiveAndReturnUserVo1(\UserVo1 $user) : \UserVo1

So amfPHP must receive a typed UserVo1 object, and the CustomClassConverter plugin must find the UserVo1 class in its value object folders

### Parameters

#### $user

`\UserVo1`

### Returns

`\UserVo1`

## This method accepts any object.

    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.

### Parameters

#### $user

`\type`

### Returns

`\type`