Decorates a StrikeIron response object returned by the SOAP extension to provide more a PHP-like interface.

category Zend
package Zend_Service
subpackage StrikeIron
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License

 Methods

Proxy method calls to the decorated object. This will only be used when the SOAPClient returns a custom PHP object via its classmap option so no inflection is done.

__call(string $method, array $args) 

Parameters

$method

string

Name of method called

$args

array

Arguments for method

Class constructor

__construct(object $object, null|string $name = null

Parameters

$object

object

Object to decorate

$name

nullstring

Name of the object

Proxy property access to the decorated object, inflecting the property name and decorating any child objects returned.

__get(string $property) : mixed

If the property is not found in the decorated object, return NULL as a convenience feature to avoid notices.

Parameters

$property

string

Property name to retrieve

Returns

mixedValue of property or NULL

Return the object being decorated

getDecoratedObject() : object

Returns

object

Return the name of the object being decorated

getDecoratedObjectName() : null | string

Returns

nullstring

Decorate a value returned by the result object. The default implementation here only decorates child objects.

_decorate(mixed $result) : mixed

Parameters

$result

mixed

Value to decorate

Returns

mixedDecorated result

Inflect a property name from PHP-style to the result object's style. The default implementation here only inflects the case of the first letter, e.g. from "fooBar" to "FooBar".

_inflect(string $property) : string

Parameters

$property

string

Property name to inflect

Returns

stringInflected property name

 Properties

 

Name of the decorated object

$_name : null | string

Default

null
 

Object to decorate

$_object : object

Default

null