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 [email protected] so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Service
- Subpackage
- StrikeIron
- Version
- $Id: Decorator.php 24593 2012-01-05 20:35:02Z matthew $
\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-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties
Methods


__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.
Name | Type | Description |
---|---|---|
$method | string | Name of method called |
$args | array | Arguments for method |


__construct(object $object, null | string $name = null) : void
Class constructor
Name | Type | Description |
---|---|---|
$object | object | Object to decorate |
$name | null | string | Name of the object |


__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.
Name | Type | Description |
---|---|---|
$property | string | Property name to retrieve |
Type | Description |
---|---|
mixed | Value of property or NULL |


_decorate(mixed $result) : mixed
Decorate a value returned by the result object.
The default implementation here only decorates child objects.
Name | Type | Description |
---|---|---|
$result | mixed | Value to decorate |
Type | Description |
---|---|
mixed | Decorated result |


_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".
Name | Type | Description |
---|---|---|
$property | string | Property name to inflect |
Type | Description |
---|---|
string | Inflected property name |