1741.1. Zend\Json\Server\Smd\Service
Create Service Mapping Description for a method
1741.1.1. Methods
1741.1.1.1. __construct
-
__construct()
Constructor
Parameters: | string|array – |
Throws InvalidArgumentException: |
| if no name provided |
1741.1.1.2. setOptions
-
setOptions()
Set object state
Parameters: | array – |
Return type: | Service |
1741.1.1.3. setName
-
setName()
Set service name
Parameters: | string – |
Return type: | Service |
Throws : | InvalidArgumentException |
1741.1.1.4. getName
-
getName()
Retrieve name
1741.1.1.5. setTransport
-
setTransport()
Set Transport
Currently limited to POST
Parameters: | string – |
Throws InvalidArgumentException: |
| |
Return type: | Service |
1741.1.1.6. getTransport
-
getTransport()
Get transport
1741.1.1.7. setTarget
-
setTarget()
Set service target
Parameters: | string – |
Return type: | Service |
1741.1.1.8. getTarget
-
getTarget()
Get service target
1741.1.1.9. setEnvelope
-
setEnvelope()
Set envelope type
Parameters: | string – |
Throws InvalidArgumentException: |
| |
Return type: | Service |
1741.1.1.10. getEnvelope
-
getEnvelope()
Get envelope type
1741.1.1.11. addParam
-
addParam()
Add a parameter to the service
Parameters: |
- string|array –
- array –
- int|null –
|
Throws InvalidArgumentException: |
| |
Return type: | Service
|
1741.1.1.12. addParams
-
addParams()
Add params
Each param should be an array, and should include the key ‘type’.
Parameters: | array – |
Return type: | Service |
1741.1.1.13. setParams
-
setParams()
Overwrite all parameters
Parameters: | array – |
Return type: | Service |
1741.1.1.14. getParams
-
getParams()
Get all parameters
Returns all params in specified order.
1741.1.1.15. setReturn
-
setReturn()
Set return type
Parameters: | string|array – |
Throws InvalidArgumentException: |
| |
Return type: | Service |
1741.1.1.16. getReturn
-
getReturn()
Get return type
1741.1.1.17. toArray
-
toArray()
Cast service description to array
1741.1.1.18. toJson
-
toJson()
Return JSON encoding of service
1741.1.1.19. __toString
-
__toString()
Cast to string
1741.1.1.20. _validateParamType
-
_validateParamType()
Validate parameter type
Parameters: |
|
Return type: | string
|
Throws : | InvalidArgumentException
|