API Documentation

Service/StrikeIron/Decorator.php

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

category
Zend  
copyright
Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)  
license
New BSD License  
package
Zend_Service  
subpackage
StrikeIron  
version
$Id: Decorator.php 23775 2011-03-01 17:25:24Z ralph $  

\Zend_Service_StrikeIron_Decorator

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

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

Properties

Propertyprotectednull|string  $_name= 'null'

Name of the decorated object

Default valuenullDetails
Type
nullstring
Propertyprotectedobject  $_object= 'null'

Object to decorate

Default valuenullDetails
Type
object

Methods

methodpublic__call( string $method, array $args ) : void

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.

Parameters
Name Type Description
$method string Name of method called
$args array Arguments for method
methodpublic__construct( object $object, null|string $name = null ) : void

Class constructor

Parameters
Name Type Description
$object object Object to decorate
$name null|string Name of the object
methodpublic__get( string $property ) : mixed

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

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

Parameters
Name Type Description
$property string Property name to retrieve
Returns
Type Description
mixed Value of property or NULL
methodprotected_decorate( mixed $result ) : mixed

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

Parameters
Name Type Description
$result mixed Value to decorate
Returns
Type Description
mixed Decorated result
methodprotected_inflect( string $property ) : string

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".

Parameters
Name Type Description
$property string Property name to inflect
Returns
Type Description
string Inflected property name
methodpublicgetDecoratedObject( ) : object

Return the object being decorated

Returns
Type Description
object
methodpublicgetDecoratedObjectName( ) : null|string

Return the name of the object being decorated

Returns
Type Description
nullstring
Documentation was generated by DocBlox 0.13.3.