addParam($type, array $options = array(), $order = null): Add a parameter to the service. By default, only the parameter type is necessary. However, you may also specify the order, as well as options such as:
name: the parameter name
optional: whether or not the parameter is optional
default: a default value for the parameter
description: text describing the parameter
addParams(array $params): Add several parameters at once; each param should be an assoc array containing minimally the key 'type' describing the parameter type, and optionally the key 'order'; any other keys will be passed as $options to addOption().
setParams(array $params): Set many parameters at once, overwriting any existing parameters.
getParams(): Retrieve all currently set parameters.
setReturn($type): Set the return value type of the service.
getReturn(): Get the return value type of the service.
toArray(): Cast the service to an array.
toJson(): Cast the service to a JSON representation.