|
1 | 1 | # Package Base |
2 | 2 | [](https://packagist.org/packages/wsdltophp/packagebase) |
| 3 | +[](https://packagist.org/packages/wsdltophp/packagebase) |
3 | 4 | [](https://travis-ci.org/WsdlToPhp/PackageBase) |
4 | 5 | [](https://travis-ci.org/WsdlToPhp/PackageBase) |
5 | 6 | [](https://scrutinizer-ci.com/g/WsdlToPhp/PackageBase/) |
@@ -33,10 +34,10 @@ There is at least/most one method that must be implemented so it's pretty fast t |
33 | 34 |
|
34 | 35 | ### StructArrayInterface |
35 | 36 | #### Description |
36 | | -This interface must be used to define a new ArrayType class. The goal is to provide utility methods around Array Structs defined by the Wsdl in order to ease the handling of its content. Therefore, this interface inherits from our [StructInterface](#structinterface) interface interface plus the native [ArrayAccess](http://php.net/manual/en/class.arrayaccess.php), [Iterator](http://php.net/manual/en/class.iterator.php) and [Countable](http://php.net/manual/en/class.countable.php) PHP interfaces |
| 37 | +This interface must be used to define a new ArrayType class. The goal is to provide utility methods around Array Structs defined by the Wsdl in order to ease the handling of its content. Therefore, this interface inherits from our [StructInterface](#structinterface) interface plus the native [ArrayAccess](http://php.net/manual/en/class.arrayaccess.php), [Iterator](http://php.net/manual/en/class.iterator.php) and [Countable](http://php.net/manual/en/class.countable.php) PHP interfaces |
37 | 38 |
|
38 | 39 | #### What has to be implemented? |
39 | | -The only method that must implement would be **getAttributeName** but be aware that it is implemented in every generated ArrayType class so no need to define it. It's just a reminder of what is available in ArrayType classes. |
| 40 | +The only method that must be implemented would be **getAttributeName** but be aware that it is implemented in every generated ArrayType class so no need to define it. It's just a reminder of what is available in ArrayType classes. |
40 | 41 |
|
41 | 42 | So, basically, you MUST at least override the methods declared by the PHP interfaces from which this interface inherits |
42 | 43 |
|
@@ -201,7 +202,7 @@ $items->initInternArray(array( |
201 | 202 | #### Description |
202 | 203 | This class is the base class for any ```ServiceType``` class generated by [PackageGenerator](https://github.com/WsdlToPhp/PackageGenerator). |
203 | 204 | Its goal is to provide utility/handful methods by implementing our [SoapClientInterface](#soapclientinterface) interface. |
204 | | -It's basically a decorator design pattern as the class has the [SoapClient](http://php.net/manual/en/class.soapclient.php) object as a static property in order to be able apply methods on it. It is static property in order to have a singleton between multiple calls. It can be reset by passing true as the second parameter. |
| 205 | +It's basically a decorator design pattern as the class has the [SoapClient](http://php.net/manual/en/class.soapclient.php) object as a static property in order to be able to apply methods on it. It is a static property in order to have a singleton between multiple calls (allowing to send cookies automatically between calls). It can be reset by passing true as the second parameter. |
205 | 206 |
|
206 | 207 | #### Usage |
207 | 208 | Let's say you have this type of generate ```ServiceType``` class: |
|
0 commit comments