new ValueObject( [init])
Defines a basic value object.
Defines a value object. The value object are use for example in the models or to exchange datas between a client and a server.
Parameters:
Name | Type | Argument | Default | Description |
---|---|---|---|---|
init |
Object |
<optional> |
null | A generic object containing properties with which to populate the newly instance. If this argument is null, it is ignored. |
- Implements:
Methods
-
setTo(init)
-
Sets the members of the object to the specified values.
Parameters:
Name Type Description init
Object The generic object to initialize the object.
Returns:
The current object reference.