Service/StrikeIron/Decorator.php

Show: PublicProtectedPrivateinherited
Table of Contents
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-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Service  
Subpackage
StrikeIron  
Version
$Id$  

\Zend_Service_StrikeIron_Decorator

Package: Zend_Service\StrikeIron
Decorates a StrikeIron response object returned by the SOAP extension to provide more a PHP-like interface.
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

>VPropertyprotectednull|string $_name = null
Name of the decorated object
Default valuenullDetails
Type
null | string
>VPropertyprotectedobject $_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
NameTypeDescription
$methodstring

Name of method called

$argsarray

Arguments for method

methodpublic__construct(object $object, null | string $name = null) : void

Class constructor

Parameters
NameTypeDescription
$objectobject

Object to decorate

$namenull | 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
NameTypeDescription
$propertystring

Property name to retrieve

Returns
TypeDescription
mixedValue 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
NameTypeDescription
$resultmixed

Value to decorate

Returns
TypeDescription
mixedDecorated 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
NameTypeDescription
$propertystring

Property name to inflect

Returns
TypeDescription
stringInflected property name
methodpublicgetDecoratedObject() : object

Return the object being decorated

Returns
TypeDescription
object
methodpublicgetDecoratedObjectName() : null | string

Return the name of the object being decorated

Returns
TypeDescription
null | string
Documentation was generated by phpDocumentor 2.2.0 .