Rajout du code core qui n'était pas gitté

This commit is contained in:
2020-05-08 20:00:41 +02:00
parent 4821ab2b5e
commit 096d58ea33
1654 changed files with 615177 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
wsdltophp.phar
vendor
composer.lock

View File

@@ -0,0 +1,22 @@
# CHANGELOG
## 1.0.0
- Update generated classes following WSDL updates
## 0.2.0
- Update generated classes using latest generator version and latest WSDL version
## 0.1.0
- Update generated classes using latest generator version and latest WSDL version (base64Binary handling, composer-settings option), new structs/methods and removes structs from WS
## 0.0.4
- Update generated classes using latest generator version (classmap, integer validations)
## 0.0.3
- Update readme
## 0.0.2
- Update generated classes using latest generator version, fixes broken code on parameter value test, fixes autocompletion
## 0.0.1
- Initial version

View File

@@ -0,0 +1,19 @@
Copyright (c) 2015 WsdlToPhp
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

View File

@@ -0,0 +1,59 @@
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/WsdlToPhp/PackageColissimoPostage/badges/quality-score.png?b=develop)](https://scrutinizer-ci.com/g/WsdlToPhp/PackageColissimoPostage/?branch=develop)
[![Latest Stable Version](https://poser.pugx.org/wsdltophp/package-colissimo-postage/v/stable)](https://packagist.org/packages/wsdltophp/package-colissimo-postage)
[![Dependency Status](https://www.versioneye.com/user/projects/56e426e4df573d003a5f5e9f/badge.svg?style=flat)](https://www.versioneye.com/user/projects/56e426e4df573d003a5f5e9f)
[![StyleCI](https://styleci.io/repos/53735115/shield)](https://styleci.io/repos/53735115)
[![Total Downloads](https://poser.pugx.org/wsdltophp/package-colissimo-postage/downloads)](https://packagist.org/packages/wsdltophp/package-colissimo-postage)
# PackageColissimoPostage
This package has been generated from the [Colissimo Postage Web Services](https://ws.colissimo.fr/sls-ws/SlsServiceWS?wsdl) WSDL using the [PackageGenerator](https://github.com/WsdlToPhp/PackageGenerator) project.
# Summary
- [Generating again the package](#generating-again-the-package)
- [How to use the generated package?](#how-to-use-the-generated-package)
- [Install the project](#install-the-project)
- [Learn from the tutorial](#learn-from-the-tutorial)
- [Start from the samples](#start-from-the-samples)
- [GenerateLabel](samples/GenerateLabel.php)
- [GetProductInter](samples/GetProductInter.php)
- [Need support or having a question?](#need-support-or-having-a-question)
# Generating again the package
You can generate again the package's sources using the [generate.sh](generate.sh) script:
```bash
$ git clone https://github.com/WsdlToPhp/PackageColissimoPostage.git package-colissimo-postage
$ cd package-colissimo-postage
$ ./generate.sh
```
After generating the package, don't forget to edit the generated [composer.json](composer.json) file in order to update the psr-4 autoloading:
```json
"psr-4": {
"ColissimoPostage\\": "./src/",
"SoapClient\\": "./SoapClient/"
}
```
Then run:
```bash
$ composer update
```
To learn how to customize the generated package, please read the PackageGenerator's [README](https://github.com/WsdlToPhp/PackageGenerator/blob/master/README.md).
# How to use the generated package?
## Install the project
```bash
$ git clone https://github.com/WsdlToPhp/PackageColissimoPostage.git package-colissimo-postage
$ cd package-colissimo-postage
$ composer update
```
## Learn from the tutorial
Start looking into the auto-generated [tutorial.php](tutorial.php) file. This file contains the starting code to use this package. In addition it contains all the operations provided by the Exchange Web Services and the way to call them.
## Start from the samples
Sample scripts are available under the [samples](samples) folder:
- [GenerateLabel](samples/GenerateLabel.php)
- [GetProductInter](samples/GetProductInter.php)
# Need support or having a question?
We can help you understand how to use it and how to customize it. Feel free to contact us at contact@wsdltophp.com.

View File

@@ -0,0 +1,48 @@
<?php
namespace SoapClient;
/**
* This class can be overridden at your will.
* Its only purpose is to show you how you can use your own SoapClient client.
*/
class SoapClient extends \SoapClient
{
/**
* Final XML request
* @var string
*/
public $lastRequest;
/**
* @see SoapClient::__doRequest()
*/
public function __doRequest($request, $location, $action, $version, $oneWay = null)
{
/**
* Colissimo does not support type definition
*/
$request = str_replace(' xsi:type="ns1:outputFormat"', '', $request);
$request = str_replace(' xsi:type="ns1:letter"', '', $request);
$request = str_replace(' xsi:type="ns1:address"', '', $request);
$request = str_replace(' xsi:type="ns1:sender"', '', $request);
/**
* Colissimo returns headers and boundary parts
*/
$response = parent::__doRequest($this->lastRequest = $request, $location, $action, $version, $oneWay);
/**
* So we only keep the XML envelope
*/
$response = substr($response, strpos($response, '<soap:Envelope '), strrpos($response, '</soap:Envelope>') - strpos($response, '<soap:Envelope ') + strlen('</soap:Envelope>'));
return '<?xml version="1.0" encoding="UTF-8"?>' . trim($response);
}
/**
* Override it in order to return the final XML Request
* @see SoapClient::__getLastRequest()
* @return string
*/
public function __getLastRequest()
{
return $this->lastRequest;
}
}

View File

@@ -0,0 +1,29 @@
<?php
namespace SoapClient;
use WsdlToPhp\PackageBase\AbstractSoapClientBase;
/**
* This class can be overridden at your will.
* Its only purpose is to show you how you can use your own SoapClient client.
* As you can see, you must at least override the getSoapClientClassName in order to return
* your own SoapClient class name to be used.
*
* Full information can be found at PackageBase project homepage: https://github.com/WsdlToPhp/PackageBase.
*/
class SoapClientBase extends AbstractSoapClientBase
{
/**
* @var string
*/
const DEFAULT_SOAP_CLIENT_CLASS = '\SoapClient\SoapClient';
/**
* @see \WsdlToPhp\PackageBase\AbstractSoapClientBase::getSoapClientClassName()
* @return string
*/
public function getSoapClientClassName($soapClientClassName = null)
{
return parent::getSoapClientClassName(static::DEFAULT_SOAP_CLIENT_CLASS);
}
}

View File

@@ -0,0 +1,15 @@
{
"name": "wsdltophp/package-colissimo-postage",
"description": "Package generated from https://ws.colissimo.fr/sls-ws/SlsServiceWS?wsdl using wsdltophp/packagegenerator",
"require": {
"php": ">=5.3.3",
"ext-soap": "*",
"wsdltophp/packagebase": "~1.0"
},
"autoload": {
"psr-4": {
"ColissimoPostage\\": "./src/",
"SoapClient\\": "./SoapClient/"
}
}
}

View File

@@ -0,0 +1,35 @@
# get the latest wsdltophp.phar
if [ ! -f wsdltophp.phar ]; then
echo "Download wsdltophp.phar once";
wget https://phar.wsdltophp.com/wsdltophp.phar;
fi
# get current folder
DEST=`pwd`;
# clean current folder
rm -rf $DEST/src/ \
$DEST/tutorial.php \
$DEST/composer.json \
$DEST/composer.lock;
# package informations
php wsdltophp.phar generate:package \
--urlorpath="https://ws.colissimo.fr/sls-ws/SlsServiceWS?wsdl" \
--destination=$DEST \
--composer-name="wsdltophp/package-colissimo-postage" \
--composer-settings="autoload.psr-4.SoapClient\:./SoapClient/" \
--addcomments="author:WsdlToPhp <contact@wsdltophp.com>" \
--soapclient="\SoapClient\SoapClientBase" \
--namespace="ColissimoPostage";
# generate package
php wsdltophp.phar generate:package \
--urlorpath="https://ws.colissimo.fr/sls-ws/SlsServiceWS?wsdl" \
--destination=$DEST \
--composer-name="wsdltophp/package-colissimo-postage" \
--composer-settings="autoload.psr-4.SoapClient\:./SoapClient/" \
--addcomments="author:WsdlToPhp <contact@wsdltophp.com>" \
--soapclient="\SoapClient\SoapClientBase" \
--namespace="ColissimoPostage" \
--force;

View File

@@ -0,0 +1,98 @@
<?php
/**
* Composer autoload
*/
require_once __DIR__ . '/../vendor/autoload.php';
/**
* Used classes
*/
use WsdlToPhp\PackageBase\AbstractSoapClientBase;
use ColissimoPostage\ClassMap;
use ColissimoPostage\ServiceType\Generate;
use ColissimoPostage\StructType\GenerateLabelRequest;
use ColissimoPostage\StructType\OutputFormat;
use ColissimoPostage\StructType\Letter;
use ColissimoPostage\StructType\Fields;
use ColissimoPostage\StructType\GenerateLabel;
use ColissimoPostage\StructType\Service;
use ColissimoPostage\StructType\Parcel;
use ColissimoPostage\StructType\CustomsDeclarations;
use ColissimoPostage\StructType\Contents;
use ColissimoPostage\StructType\Article;
use ColissimoPostage\StructType\Category;
use ColissimoPostage\StructType\Sender;
use ColissimoPostage\StructType\Address;
use ColissimoPostage\StructType\Addressee;
/**
* Your Colissimo credentials
*/
define('COLISSIMO_WS_CONTRACT_NUMBER', '******');
/**
* Your Office 365 passowrd
*/
define('COLISSIMO_WS_PASSWORD', '************');
/**
* Minimal options
*/
$options = array(
AbstractSoapClientBase::WSDL_URL => 'https://ws.colissimo.fr/sls-ws/SlsServiceWS?wsdl',
AbstractSoapClientBase::WSDL_CLASSMAP => ClassMap::get()
);
/**
* Samples for Generate ServiceType
*/
$generate = new Generate($options);
/**
* Send the request
*/
$result = $generate->generateLabel(
new GenerateLabel(
new GenerateLabelRequest(
COLISSIMO_WS_CONTRACT_NUMBER,
COLISSIMO_WS_PASSWORD,
new OutputFormat(0, 0, 'PDF_A4_300dpi', true, ''),
new Letter(
new Service('A2P', date('Y-m-d', strtotime('next monday')), false, null, null, null, null, 1040, 1222, '123465', 'MONSITE.COM', 2),
new Parcel(null, null, 15000, null, '1', false, null, null, null, 'Remettre au gardien', '005727', null),
new CustomsDeclarations(
1,
new Contents(array(
new Article('Produit neuf', 1, 1, 1500, '0102', 'FR')
),
new Category(2)
)
),
new Sender(
'refsenderXXX',
new Address('sender company', 'Jean', 'Dupont', 'etag 00', 'entrée', 'ligne principale', 'lieu dit', 'FR', 'PARIS', '75001', '0102030405', '0708090102', '0054', '88FF', 'foo@bar.com', 'FFFF', 'FR')
),
new Addressee(
'123456',
false,
'service info',
null,
new Address('sender company', 'Jean', 'Dupont', 'etag 00', 'entrée', 'ligne principale', 'lieu dit', 'FR', 'PARIS', '75001', '0102030405', '0708090102', '0054', '88FF', 'foo@bar.com', 'FFFF', 'FR')
)
)
)
)
);
/**
* Debug informations provided by the utility methods
*/
if (true) {
echo 'XML Request: ' . $generate->getLastRequest() . "\r\n";
echo 'Headers Request: ' . $generate->getLastRequestHeaders() . "\r\n";
echo 'XML Response: ' . $generate->getLastResponse() . "\r\n";
echo 'Headers Response: ' . $generate->getLastResponseHeaders() . "\r\n";
}
/**
* Sample call for getProductInter operation/method
*/
if ($generate->getLastResponse(true) instanceof \DOMDocument) {
echo PHP_EOL . 'PDF url: ' . $generate->getLastResponse(true)
->getElementsByTagName('pdfUrl')
->item(0)->nodeValue . PHP_EOL;
} else {
echo PHP_EOL . 'An error occurred: ' . $generate->getLastErrorForMethod('ColissimoPostage\ServiceType\Generate::generateLabel')->getMessage() . PHP_EOL;
}

View File

@@ -0,0 +1,56 @@
<?php
/**
* Composer autoload
*/
require_once __DIR__ . '/../vendor/autoload.php';
/**
* Used classes
*/
use WsdlToPhp\PackageBase\AbstractSoapClientBase;
use ColissimoPostage\ClassMap;
use ColissimoPostage\ServiceType\Get;
use ColissimoPostage\StructType\GetProductInter;
use ColissimoPostage\StructType\GetProductInterRequest;
/**
* Your Colissimo credentials
*/
define('COLISSIMO_WS_CONTRACT_NUMBER', '******');
/**
* Your Office 365 passowrd
*/
define('COLISSIMO_WS_PASSWORD', '************');
/**
* Minimal options
*/
$options = array(
AbstractSoapClientBase::WSDL_URL => 'https://ws.colissimo.fr/sls-ws/SlsServiceWS?wsdl',
AbstractSoapClientBase::WSDL_CLASSMAP => ClassMap::get()
);
/**
* Samples for Get ServiceType
*/
$get = new Get($options);
/**
* Send the request
*/
$result = $get->getProductInter(new GetProductInter(new GetProductInterRequest(COLISSIMO_WS_CONTRACT_NUMBER, COLISSIMO_WS_PASSWORD, 'COLI', 0, 0, 1, 'DZ', '2000')));
/**
* Debug informations provided by the utility methods
*/
if (false) {
echo 'XML Request: ' . $get->getLastRequest() . "\r\n";
echo 'Headers Request: ' . $get->getLastRequestHeaders() . "\r\n";
echo 'XML Response: ' . $get->getLastResponse() . "\r\n";
echo 'Headers Response: ' . $get->getLastResponseHeaders() . "\r\n";
}
/**
* Sample call for getProductInter operation/method
*/
if ($result !== false) {
echo sprintf('Product: %s', implode(',', $result->getReturn()->getProduct())) . PHP_EOL;
echo sprintf('PartnerType: %s', $result->getReturn()->getPartnerType()) . PHP_EOL;
echo sprintf('ReturnTypeChoice: %s', implode(', ', $result->getReturn()->getReturnTypeChoice())) . PHP_EOL;
echo sprintf('Message: %s', array_shift($result->getReturn()->getMessages())->getMessageContent()) . PHP_EOL;
} else {
print_r($get->getLastError());
}

View File

@@ -0,0 +1,87 @@
<?php
namespace ColissimoPostage;
/**
* Class which returns the class map definition
* @package
*/
class ClassMap
{
/**
* Returns the mapping between the WSDL Structs and generated Structs' classes
* This array is sent to the \SoapClient when calling the WS
* @return string[]
*/
final public static function get()
{
return array(
'CheckGenerateLabelRequestType' => '\\ColissimoPostage\\StructType\\CheckGenerateLabelRequestType',
'outputFormat' => '\\ColissimoPostage\\StructType\\OutputFormat',
'letter' => '\\ColissimoPostage\\StructType\\Letter',
'service' => '\\ColissimoPostage\\StructType\\Service',
'parcel' => '\\ColissimoPostage\\StructType\\Parcel',
'customsDeclarations' => '\\ColissimoPostage\\StructType\\CustomsDeclarations',
'contents' => '\\ColissimoPostage\\StructType\\Contents',
'article' => '\\ColissimoPostage\\StructType\\Article',
'category' => '\\ColissimoPostage\\StructType\\Category',
'original' => '\\ColissimoPostage\\StructType\\Original',
'importerAddress' => '\\ColissimoPostage\\StructType\\ImporterAddress',
'sender' => '\\ColissimoPostage\\StructType\\Sender',
'address' => '\\ColissimoPostage\\StructType\\Address',
'addressee' => '\\ColissimoPostage\\StructType\\Addressee',
'codSenderAddress' => '\\ColissimoPostage\\StructType\\CodSenderAddress',
'fields' => '\\ColissimoPostage\\StructType\\Fields',
'field' => '\\ColissimoPostage\\StructType\\Field',
'GenerateLabelRequestType' => '\\ColissimoPostage\\StructType\\GenerateLabelRequestType',
'GetListMailBoxPickingDatesRetourRequestType' => '\\ColissimoPostage\\StructType\\GetListMailBoxPickingDatesRetourRequestType',
'GetProductInterRequestType' => '\\ColissimoPostage\\StructType\\GetProductInterRequestType',
'planPickupRequestType' => '\\ColissimoPostage\\StructType\\PlanPickupRequestType',
'checkGenerateLabel' => '\\ColissimoPostage\\StructType\\CheckGenerateLabel',
'checkGenerateLabelRequest' => '\\ColissimoPostage\\StructType\\CheckGenerateLabelRequest',
'checkGenerateLabelResponse' => '\\ColissimoPostage\\StructType\\CheckGenerateLabelResponse',
'CheckGenerateLabelResponseType' => '\\ColissimoPostage\\StructType\\CheckGenerateLabelResponseType',
'baseResponse' => '\\ColissimoPostage\\StructType\\BaseResponse',
'Message' => '\\ColissimoPostage\\StructType\\Message',
'generateLabel' => '\\ColissimoPostage\\StructType\\GenerateLabel',
'generateLabelRequest' => '\\ColissimoPostage\\StructType\\GenerateLabelRequest',
'generateLabelResponse' => '\\ColissimoPostage\\StructType\\GenerateLabelResponse',
'GenerateLabelResponseType' => '\\ColissimoPostage\\StructType\\GenerateLabelResponseType',
'xmlResponse' => '\\ColissimoPostage\\StructType\\XmlResponse',
'belgiumLabel' => '\\ColissimoPostage\\StructType\\BelgiumLabel',
'codeVAS' => '\\ColissimoPostage\\StructType\\CodeVAS',
'returnAddressBelgium' => '\\ColissimoPostage\\StructType\\ReturnAddressBelgium',
'elementVisual' => '\\ColissimoPostage\\StructType\\ElementVisual',
'pickupLocation' => '\\ColissimoPostage\\StructType\\PickupLocation',
'addressPickupLocation' => '\\ColissimoPostage\\StructType\\AddressPickupLocation',
'routing' => '\\ColissimoPostage\\StructType\\Routing',
'site' => '\\ColissimoPostage\\StructType\\Site',
'addressPCH' => '\\ColissimoPostage\\StructType\\AddressPCH',
'swissLabel' => '\\ColissimoPostage\\StructType\\SwissLabel',
'zoneRouting' => '\\ColissimoPostage\\StructType\\ZoneRouting',
'zoneCABRoutage' => '\\ColissimoPostage\\StructType\\ZoneCABRoutage',
'zoneInfosRoutage' => '\\ColissimoPostage\\StructType\\ZoneInfosRoutage',
'labelResponse' => '\\ColissimoPostage\\StructType\\LabelResponse',
'planPickup' => '\\ColissimoPostage\\StructType\\PlanPickup',
'planPickupRequest' => '\\ColissimoPostage\\StructType\\PlanPickupRequest',
'planPickupResponse' => '\\ColissimoPostage\\StructType\\PlanPickupResponse',
'planPickupResponseType' => '\\ColissimoPostage\\StructType\\PlanPickupResponseType',
'getBordereauByNumber' => '\\ColissimoPostage\\StructType\\GetBordereauByNumber',
'getBordereauByNumberResponse' => '\\ColissimoPostage\\StructType\\GetBordereauByNumberResponse',
'bordereauResponse' => '\\ColissimoPostage\\StructType\\BordereauResponse',
'bordereau' => '\\ColissimoPostage\\StructType\\Bordereau',
'bordereauHeader' => '\\ColissimoPostage\\StructType\\BordereauHeader',
'generateBordereauByParcelsNumbers' => '\\ColissimoPostage\\StructType\\GenerateBordereauByParcelsNumbers',
'generateBordereauParcelNumberList' => '\\ColissimoPostage\\StructType\\GenerateBordereauParcelNumberList',
'generateBordereauByParcelsNumbersResponse' => '\\ColissimoPostage\\StructType\\GenerateBordereauByParcelsNumbersResponse',
'getListMailBoxPickingDates' => '\\ColissimoPostage\\StructType\\GetListMailBoxPickingDates',
'getListMailBoxPickingDatesRetourRequest' => '\\ColissimoPostage\\StructType\\GetListMailBoxPickingDatesRetourRequest',
'getListMailBoxPickingDatesResponse' => '\\ColissimoPostage\\StructType\\GetListMailBoxPickingDatesResponse',
'GetListMailBoxPickingDatesResponseType' => '\\ColissimoPostage\\StructType\\GetListMailBoxPickingDatesResponseType',
'getProductInter' => '\\ColissimoPostage\\StructType\\GetProductInter',
'getProductInterRequest' => '\\ColissimoPostage\\StructType\\GetProductInterRequest',
'getProductInterResponse' => '\\ColissimoPostage\\StructType\\GetProductInterResponse',
'GetProductInterResponseType' => '\\ColissimoPostage\\StructType\\GetProductInterResponseType',
);
}
}

View File

@@ -0,0 +1,50 @@
<?php
namespace ColissimoPostage\ServiceType;
use \SoapClient\SoapClientBase;
/**
* This class stands for Check ServiceType
* @subpackage Services
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class Check extends SoapClientBase
{
/**
* Method to call the operation originally named checkGenerateLabel
* @uses SoapClientBase::getSoapClient()
* @uses SoapClientBase::setResult()
* @uses SoapClientBase::getResult()
* @uses SoapClientBase::saveLastError()
* @param \ColissimoPostage\StructType\CheckGenerateLabel $parameters
* @return \ColissimoPostage\StructType\CheckGenerateLabelResponse|bool
*/
public function checkGenerateLabel(\ColissimoPostage\StructType\CheckGenerateLabel $parameters)
{
try {
$this->setResult(self::getSoapClient()->checkGenerateLabel($parameters));
return $this->getResult();
} catch (\SoapFault $soapFault) {
$this->saveLastError(__METHOD__, $soapFault);
return false;
}
}
/**
* Returns the result
* @see SoapClientBase::getResult()
* @return \ColissimoPostage\StructType\CheckGenerateLabelResponse
*/
public function getResult()
{
return parent::getResult();
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,69 @@
<?php
namespace ColissimoPostage\ServiceType;
use \SoapClient\SoapClientBase;
/**
* This class stands for Generate ServiceType
* @subpackage Services
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class Generate extends SoapClientBase
{
/**
* Method to call the operation originally named generateLabel
* @uses SoapClientBase::getSoapClient()
* @uses SoapClientBase::setResult()
* @uses SoapClientBase::getResult()
* @uses SoapClientBase::saveLastError()
* @param \ColissimoPostage\StructType\GenerateLabel $parameters
* @return \ColissimoPostage\StructType\GenerateLabelResponse|bool
*/
public function generateLabel(\ColissimoPostage\StructType\GenerateLabel $parameters)
{
try {
$this->setResult(self::getSoapClient()->generateLabel($parameters));
return $this->getResult();
} catch (\SoapFault $soapFault) {
$this->saveLastError(__METHOD__, $soapFault);
return false;
}
}
/**
* Method to call the operation originally named generateBordereauByParcelsNumbers
* @uses SoapClientBase::getSoapClient()
* @uses SoapClientBase::setResult()
* @uses SoapClientBase::getResult()
* @uses SoapClientBase::saveLastError()
* @param \ColissimoPostage\StructType\GenerateBordereauByParcelsNumbers $parameters
* @return \ColissimoPostage\StructType\GenerateBordereauByParcelsNumbersResponse|bool
*/
public function generateBordereauByParcelsNumbers(\ColissimoPostage\StructType\GenerateBordereauByParcelsNumbers $parameters)
{
try {
$this->setResult(self::getSoapClient()->generateBordereauByParcelsNumbers($parameters));
return $this->getResult();
} catch (\SoapFault $soapFault) {
$this->saveLastError(__METHOD__, $soapFault);
return false;
}
}
/**
* Returns the result
* @see SoapClientBase::getResult()
* @return \ColissimoPostage\StructType\GenerateBordereauByParcelsNumbersResponse|\ColissimoPostage\StructType\GenerateLabelResponse
*/
public function getResult()
{
return parent::getResult();
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,88 @@
<?php
namespace ColissimoPostage\ServiceType;
use \SoapClient\SoapClientBase;
/**
* This class stands for Get ServiceType
* @subpackage Services
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class Get extends SoapClientBase
{
/**
* Method to call the operation originally named getBordereauByNumber
* @uses SoapClientBase::getSoapClient()
* @uses SoapClientBase::setResult()
* @uses SoapClientBase::getResult()
* @uses SoapClientBase::saveLastError()
* @param \ColissimoPostage\StructType\GetBordereauByNumber $parameters
* @return \ColissimoPostage\StructType\GetBordereauByNumberResponse|bool
*/
public function getBordereauByNumber(\ColissimoPostage\StructType\GetBordereauByNumber $parameters)
{
try {
$this->setResult(self::getSoapClient()->getBordereauByNumber($parameters));
return $this->getResult();
} catch (\SoapFault $soapFault) {
$this->saveLastError(__METHOD__, $soapFault);
return false;
}
}
/**
* Method to call the operation originally named getListMailBoxPickingDates
* @uses SoapClientBase::getSoapClient()
* @uses SoapClientBase::setResult()
* @uses SoapClientBase::getResult()
* @uses SoapClientBase::saveLastError()
* @param \ColissimoPostage\StructType\GetListMailBoxPickingDates $parameters
* @return \ColissimoPostage\StructType\GetListMailBoxPickingDatesResponse|bool
*/
public function getListMailBoxPickingDates(\ColissimoPostage\StructType\GetListMailBoxPickingDates $parameters)
{
try {
$this->setResult(self::getSoapClient()->getListMailBoxPickingDates($parameters));
return $this->getResult();
} catch (\SoapFault $soapFault) {
$this->saveLastError(__METHOD__, $soapFault);
return false;
}
}
/**
* Method to call the operation originally named getProductInter
* @uses SoapClientBase::getSoapClient()
* @uses SoapClientBase::setResult()
* @uses SoapClientBase::getResult()
* @uses SoapClientBase::saveLastError()
* @param \ColissimoPostage\StructType\GetProductInter $parameters
* @return \ColissimoPostage\StructType\GetProductInterResponse|bool
*/
public function getProductInter(\ColissimoPostage\StructType\GetProductInter $parameters)
{
try {
$this->setResult(self::getSoapClient()->getProductInter($parameters));
return $this->getResult();
} catch (\SoapFault $soapFault) {
$this->saveLastError(__METHOD__, $soapFault);
return false;
}
}
/**
* Returns the result
* @see SoapClientBase::getResult()
* @return \ColissimoPostage\StructType\GetBordereauByNumberResponse|\ColissimoPostage\StructType\GetListMailBoxPickingDatesResponse|\ColissimoPostage\StructType\GetProductInterResponse
*/
public function getResult()
{
return parent::getResult();
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,50 @@
<?php
namespace ColissimoPostage\ServiceType;
use \SoapClient\SoapClientBase;
/**
* This class stands for Plan ServiceType
* @subpackage Services
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class Plan extends SoapClientBase
{
/**
* Method to call the operation originally named planPickup
* @uses SoapClientBase::getSoapClient()
* @uses SoapClientBase::setResult()
* @uses SoapClientBase::getResult()
* @uses SoapClientBase::saveLastError()
* @param \ColissimoPostage\StructType\PlanPickup $parameters
* @return \ColissimoPostage\StructType\PlanPickupResponse|bool
*/
public function planPickup(\ColissimoPostage\StructType\PlanPickup $parameters)
{
try {
$this->setResult(self::getSoapClient()->planPickup($parameters));
return $this->getResult();
} catch (\SoapFault $soapFault) {
$this->saveLastError(__METHOD__, $soapFault);
return false;
}
}
/**
* Returns the result
* @see SoapClientBase::getResult()
* @return \ColissimoPostage\StructType\PlanPickupResponse
*/
public function getResult()
{
return parent::getResult();
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,585 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for address StructType
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class Address extends AbstractStructBase
{
/**
* The companyName
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $companyName;
/**
* The lastName
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $lastName;
/**
* The firstName
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $firstName;
/**
* The line0
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $line0;
/**
* The line1
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $line1;
/**
* The line2
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $line2;
/**
* The line3
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $line3;
/**
* The countryCode
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $countryCode;
/**
* The city
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $city;
/**
* The zipCode
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $zipCode;
/**
* The phoneNumber
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $phoneNumber;
/**
* The mobileNumber
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $mobileNumber;
/**
* The doorCode1
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $doorCode1;
/**
* The doorCode2
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $doorCode2;
/**
* The email
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $email;
/**
* The intercom
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $intercom;
/**
* The language
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $language;
/**
* Constructor method for address
* @uses Address::setCompanyName()
* @uses Address::setLastName()
* @uses Address::setFirstName()
* @uses Address::setLine0()
* @uses Address::setLine1()
* @uses Address::setLine2()
* @uses Address::setLine3()
* @uses Address::setCountryCode()
* @uses Address::setCity()
* @uses Address::setZipCode()
* @uses Address::setPhoneNumber()
* @uses Address::setMobileNumber()
* @uses Address::setDoorCode1()
* @uses Address::setDoorCode2()
* @uses Address::setEmail()
* @uses Address::setIntercom()
* @uses Address::setLanguage()
* @param string $companyName
* @param string $lastName
* @param string $firstName
* @param string $line0
* @param string $line1
* @param string $line2
* @param string $line3
* @param string $countryCode
* @param string $city
* @param string $zipCode
* @param string $phoneNumber
* @param string $mobileNumber
* @param string $doorCode1
* @param string $doorCode2
* @param string $email
* @param string $intercom
* @param string $language
*/
public function __construct($companyName = null, $lastName = null, $firstName = null, $line0 = null, $line1 = null, $line2 = null, $line3 = null, $countryCode = null, $city = null, $zipCode = null, $phoneNumber = null, $mobileNumber = null, $doorCode1 = null, $doorCode2 = null, $email = null, $intercom = null, $language = null)
{
$this
->setCompanyName($companyName)
->setLastName($lastName)
->setFirstName($firstName)
->setLine0($line0)
->setLine1($line1)
->setLine2($line2)
->setLine3($line3)
->setCountryCode($countryCode)
->setCity($city)
->setZipCode($zipCode)
->setPhoneNumber($phoneNumber)
->setMobileNumber($mobileNumber)
->setDoorCode1($doorCode1)
->setDoorCode2($doorCode2)
->setEmail($email)
->setIntercom($intercom)
->setLanguage($language);
}
/**
* Get companyName value
* @return string|null
*/
public function getCompanyName()
{
return $this->companyName;
}
/**
* Set companyName value
* @param string $companyName
* @return \ColissimoPostage\StructType\Address
*/
public function setCompanyName($companyName = null)
{
// validation for constraint: string
if (!is_null($companyName) && !is_string($companyName)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($companyName)), __LINE__);
}
$this->companyName = $companyName;
return $this;
}
/**
* Get lastName value
* @return string|null
*/
public function getLastName()
{
return $this->lastName;
}
/**
* Set lastName value
* @param string $lastName
* @return \ColissimoPostage\StructType\Address
*/
public function setLastName($lastName = null)
{
// validation for constraint: string
if (!is_null($lastName) && !is_string($lastName)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($lastName)), __LINE__);
}
$this->lastName = $lastName;
return $this;
}
/**
* Get firstName value
* @return string|null
*/
public function getFirstName()
{
return $this->firstName;
}
/**
* Set firstName value
* @param string $firstName
* @return \ColissimoPostage\StructType\Address
*/
public function setFirstName($firstName = null)
{
// validation for constraint: string
if (!is_null($firstName) && !is_string($firstName)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($firstName)), __LINE__);
}
$this->firstName = $firstName;
return $this;
}
/**
* Get line0 value
* @return string|null
*/
public function getLine0()
{
return $this->line0;
}
/**
* Set line0 value
* @param string $line0
* @return \ColissimoPostage\StructType\Address
*/
public function setLine0($line0 = null)
{
// validation for constraint: string
if (!is_null($line0) && !is_string($line0)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($line0)), __LINE__);
}
$this->line0 = $line0;
return $this;
}
/**
* Get line1 value
* @return string|null
*/
public function getLine1()
{
return $this->line1;
}
/**
* Set line1 value
* @param string $line1
* @return \ColissimoPostage\StructType\Address
*/
public function setLine1($line1 = null)
{
// validation for constraint: string
if (!is_null($line1) && !is_string($line1)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($line1)), __LINE__);
}
$this->line1 = $line1;
return $this;
}
/**
* Get line2 value
* @return string|null
*/
public function getLine2()
{
return $this->line2;
}
/**
* Set line2 value
* @param string $line2
* @return \ColissimoPostage\StructType\Address
*/
public function setLine2($line2 = null)
{
// validation for constraint: string
if (!is_null($line2) && !is_string($line2)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($line2)), __LINE__);
}
$this->line2 = $line2;
return $this;
}
/**
* Get line3 value
* @return string|null
*/
public function getLine3()
{
return $this->line3;
}
/**
* Set line3 value
* @param string $line3
* @return \ColissimoPostage\StructType\Address
*/
public function setLine3($line3 = null)
{
// validation for constraint: string
if (!is_null($line3) && !is_string($line3)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($line3)), __LINE__);
}
$this->line3 = $line3;
return $this;
}
/**
* Get countryCode value
* @return string|null
*/
public function getCountryCode()
{
return $this->countryCode;
}
/**
* Set countryCode value
* @param string $countryCode
* @return \ColissimoPostage\StructType\Address
*/
public function setCountryCode($countryCode = null)
{
// validation for constraint: string
if (!is_null($countryCode) && !is_string($countryCode)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($countryCode)), __LINE__);
}
$this->countryCode = $countryCode;
return $this;
}
/**
* Get city value
* @return string|null
*/
public function getCity()
{
return $this->city;
}
/**
* Set city value
* @param string $city
* @return \ColissimoPostage\StructType\Address
*/
public function setCity($city = null)
{
// validation for constraint: string
if (!is_null($city) && !is_string($city)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($city)), __LINE__);
}
$this->city = $city;
return $this;
}
/**
* Get zipCode value
* @return string|null
*/
public function getZipCode()
{
return $this->zipCode;
}
/**
* Set zipCode value
* @param string $zipCode
* @return \ColissimoPostage\StructType\Address
*/
public function setZipCode($zipCode = null)
{
// validation for constraint: string
if (!is_null($zipCode) && !is_string($zipCode)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($zipCode)), __LINE__);
}
$this->zipCode = $zipCode;
return $this;
}
/**
* Get phoneNumber value
* @return string|null
*/
public function getPhoneNumber()
{
return $this->phoneNumber;
}
/**
* Set phoneNumber value
* @param string $phoneNumber
* @return \ColissimoPostage\StructType\Address
*/
public function setPhoneNumber($phoneNumber = null)
{
// validation for constraint: string
if (!is_null($phoneNumber) && !is_string($phoneNumber)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($phoneNumber)), __LINE__);
}
$this->phoneNumber = $phoneNumber;
return $this;
}
/**
* Get mobileNumber value
* @return string|null
*/
public function getMobileNumber()
{
return $this->mobileNumber;
}
/**
* Set mobileNumber value
* @param string $mobileNumber
* @return \ColissimoPostage\StructType\Address
*/
public function setMobileNumber($mobileNumber = null)
{
// validation for constraint: string
if (!is_null($mobileNumber) && !is_string($mobileNumber)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($mobileNumber)), __LINE__);
}
$this->mobileNumber = $mobileNumber;
return $this;
}
/**
* Get doorCode1 value
* @return string|null
*/
public function getDoorCode1()
{
return $this->doorCode1;
}
/**
* Set doorCode1 value
* @param string $doorCode1
* @return \ColissimoPostage\StructType\Address
*/
public function setDoorCode1($doorCode1 = null)
{
// validation for constraint: string
if (!is_null($doorCode1) && !is_string($doorCode1)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($doorCode1)), __LINE__);
}
$this->doorCode1 = $doorCode1;
return $this;
}
/**
* Get doorCode2 value
* @return string|null
*/
public function getDoorCode2()
{
return $this->doorCode2;
}
/**
* Set doorCode2 value
* @param string $doorCode2
* @return \ColissimoPostage\StructType\Address
*/
public function setDoorCode2($doorCode2 = null)
{
// validation for constraint: string
if (!is_null($doorCode2) && !is_string($doorCode2)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($doorCode2)), __LINE__);
}
$this->doorCode2 = $doorCode2;
return $this;
}
/**
* Get email value
* @return string|null
*/
public function getEmail()
{
return $this->email;
}
/**
* Set email value
* @param string $email
* @return \ColissimoPostage\StructType\Address
*/
public function setEmail($email = null)
{
// validation for constraint: string
if (!is_null($email) && !is_string($email)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($email)), __LINE__);
}
$this->email = $email;
return $this;
}
/**
* Get intercom value
* @return string|null
*/
public function getIntercom()
{
return $this->intercom;
}
/**
* Set intercom value
* @param string $intercom
* @return \ColissimoPostage\StructType\Address
*/
public function setIntercom($intercom = null)
{
// validation for constraint: string
if (!is_null($intercom) && !is_string($intercom)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($intercom)), __LINE__);
}
$this->intercom = $intercom;
return $this;
}
/**
* Get language value
* @return string|null
*/
public function getLanguage()
{
return $this->language;
}
/**
* Set language value
* @param string $language
* @return \ColissimoPostage\StructType\Address
*/
public function setLanguage($language = null)
{
// validation for constraint: string
if (!is_null($language) && !is_string($language)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($language)), __LINE__);
}
$this->language = $language;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\Address
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,201 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for addressPCH StructType
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class AddressPCH extends AbstractStructBase
{
/**
* The city
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $city;
/**
* The line0
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $line0;
/**
* The line1
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $line1;
/**
* The line2
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $line2;
/**
* The zipCode
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $zipCode;
/**
* Constructor method for addressPCH
* @uses AddressPCH::setCity()
* @uses AddressPCH::setLine0()
* @uses AddressPCH::setLine1()
* @uses AddressPCH::setLine2()
* @uses AddressPCH::setZipCode()
* @param string $city
* @param string $line0
* @param string $line1
* @param string $line2
* @param string $zipCode
*/
public function __construct($city = null, $line0 = null, $line1 = null, $line2 = null, $zipCode = null)
{
$this
->setCity($city)
->setLine0($line0)
->setLine1($line1)
->setLine2($line2)
->setZipCode($zipCode);
}
/**
* Get city value
* @return string|null
*/
public function getCity()
{
return $this->city;
}
/**
* Set city value
* @param string $city
* @return \ColissimoPostage\StructType\AddressPCH
*/
public function setCity($city = null)
{
// validation for constraint: string
if (!is_null($city) && !is_string($city)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($city)), __LINE__);
}
$this->city = $city;
return $this;
}
/**
* Get line0 value
* @return string|null
*/
public function getLine0()
{
return $this->line0;
}
/**
* Set line0 value
* @param string $line0
* @return \ColissimoPostage\StructType\AddressPCH
*/
public function setLine0($line0 = null)
{
// validation for constraint: string
if (!is_null($line0) && !is_string($line0)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($line0)), __LINE__);
}
$this->line0 = $line0;
return $this;
}
/**
* Get line1 value
* @return string|null
*/
public function getLine1()
{
return $this->line1;
}
/**
* Set line1 value
* @param string $line1
* @return \ColissimoPostage\StructType\AddressPCH
*/
public function setLine1($line1 = null)
{
// validation for constraint: string
if (!is_null($line1) && !is_string($line1)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($line1)), __LINE__);
}
$this->line1 = $line1;
return $this;
}
/**
* Get line2 value
* @return string|null
*/
public function getLine2()
{
return $this->line2;
}
/**
* Set line2 value
* @param string $line2
* @return \ColissimoPostage\StructType\AddressPCH
*/
public function setLine2($line2 = null)
{
// validation for constraint: string
if (!is_null($line2) && !is_string($line2)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($line2)), __LINE__);
}
$this->line2 = $line2;
return $this;
}
/**
* Get zipCode value
* @return string|null
*/
public function getZipCode()
{
return $this->zipCode;
}
/**
* Set zipCode value
* @param string $zipCode
* @return \ColissimoPostage\StructType\AddressPCH
*/
public function setZipCode($zipCode = null)
{
// validation for constraint: string
if (!is_null($zipCode) && !is_string($zipCode)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($zipCode)), __LINE__);
}
$this->zipCode = $zipCode;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\AddressPCH
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,297 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for addressPickupLocation StructType
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class AddressPickupLocation extends AbstractStructBase
{
/**
* The city
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $city;
/**
* The countryCode
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $countryCode;
/**
* The countryLabel
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $countryLabel;
/**
* The line1
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $line1;
/**
* The line2
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $line2;
/**
* The line3
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $line3;
/**
* The line4
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $line4;
/**
* The zipCode
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $zipCode;
/**
* Constructor method for addressPickupLocation
* @uses AddressPickupLocation::setCity()
* @uses AddressPickupLocation::setCountryCode()
* @uses AddressPickupLocation::setCountryLabel()
* @uses AddressPickupLocation::setLine1()
* @uses AddressPickupLocation::setLine2()
* @uses AddressPickupLocation::setLine3()
* @uses AddressPickupLocation::setLine4()
* @uses AddressPickupLocation::setZipCode()
* @param string $city
* @param string $countryCode
* @param string $countryLabel
* @param string $line1
* @param string $line2
* @param string $line3
* @param string $line4
* @param string $zipCode
*/
public function __construct($city = null, $countryCode = null, $countryLabel = null, $line1 = null, $line2 = null, $line3 = null, $line4 = null, $zipCode = null)
{
$this
->setCity($city)
->setCountryCode($countryCode)
->setCountryLabel($countryLabel)
->setLine1($line1)
->setLine2($line2)
->setLine3($line3)
->setLine4($line4)
->setZipCode($zipCode);
}
/**
* Get city value
* @return string|null
*/
public function getCity()
{
return $this->city;
}
/**
* Set city value
* @param string $city
* @return \ColissimoPostage\StructType\AddressPickupLocation
*/
public function setCity($city = null)
{
// validation for constraint: string
if (!is_null($city) && !is_string($city)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($city)), __LINE__);
}
$this->city = $city;
return $this;
}
/**
* Get countryCode value
* @return string|null
*/
public function getCountryCode()
{
return $this->countryCode;
}
/**
* Set countryCode value
* @param string $countryCode
* @return \ColissimoPostage\StructType\AddressPickupLocation
*/
public function setCountryCode($countryCode = null)
{
// validation for constraint: string
if (!is_null($countryCode) && !is_string($countryCode)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($countryCode)), __LINE__);
}
$this->countryCode = $countryCode;
return $this;
}
/**
* Get countryLabel value
* @return string|null
*/
public function getCountryLabel()
{
return $this->countryLabel;
}
/**
* Set countryLabel value
* @param string $countryLabel
* @return \ColissimoPostage\StructType\AddressPickupLocation
*/
public function setCountryLabel($countryLabel = null)
{
// validation for constraint: string
if (!is_null($countryLabel) && !is_string($countryLabel)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($countryLabel)), __LINE__);
}
$this->countryLabel = $countryLabel;
return $this;
}
/**
* Get line1 value
* @return string|null
*/
public function getLine1()
{
return $this->line1;
}
/**
* Set line1 value
* @param string $line1
* @return \ColissimoPostage\StructType\AddressPickupLocation
*/
public function setLine1($line1 = null)
{
// validation for constraint: string
if (!is_null($line1) && !is_string($line1)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($line1)), __LINE__);
}
$this->line1 = $line1;
return $this;
}
/**
* Get line2 value
* @return string|null
*/
public function getLine2()
{
return $this->line2;
}
/**
* Set line2 value
* @param string $line2
* @return \ColissimoPostage\StructType\AddressPickupLocation
*/
public function setLine2($line2 = null)
{
// validation for constraint: string
if (!is_null($line2) && !is_string($line2)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($line2)), __LINE__);
}
$this->line2 = $line2;
return $this;
}
/**
* Get line3 value
* @return string|null
*/
public function getLine3()
{
return $this->line3;
}
/**
* Set line3 value
* @param string $line3
* @return \ColissimoPostage\StructType\AddressPickupLocation
*/
public function setLine3($line3 = null)
{
// validation for constraint: string
if (!is_null($line3) && !is_string($line3)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($line3)), __LINE__);
}
$this->line3 = $line3;
return $this;
}
/**
* Get line4 value
* @return string|null
*/
public function getLine4()
{
return $this->line4;
}
/**
* Set line4 value
* @param string $line4
* @return \ColissimoPostage\StructType\AddressPickupLocation
*/
public function setLine4($line4 = null)
{
// validation for constraint: string
if (!is_null($line4) && !is_string($line4)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($line4)), __LINE__);
}
$this->line4 = $line4;
return $this;
}
/**
* Get zipCode value
* @return string|null
*/
public function getZipCode()
{
return $this->zipCode;
}
/**
* Set zipCode value
* @param string $zipCode
* @return \ColissimoPostage\StructType\AddressPickupLocation
*/
public function setZipCode($zipCode = null)
{
// validation for constraint: string
if (!is_null($zipCode) && !is_string($zipCode)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($zipCode)), __LINE__);
}
$this->zipCode = $zipCode;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\AddressPickupLocation
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,195 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for addressee StructType
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class Addressee extends AbstractStructBase
{
/**
* The addresseeParcelRef
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $addresseeParcelRef;
/**
* The codeBarForReference
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var bool
*/
public $codeBarForReference;
/**
* The serviceInfo
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $serviceInfo;
/**
* The promotionCode
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $promotionCode;
/**
* The address
* @var \ColissimoPostage\StructType\Address
*/
public $address;
/**
* Constructor method for addressee
* @uses Addressee::setAddresseeParcelRef()
* @uses Addressee::setCodeBarForReference()
* @uses Addressee::setServiceInfo()
* @uses Addressee::setPromotionCode()
* @uses Addressee::setAddress()
* @param string $addresseeParcelRef
* @param bool $codeBarForReference
* @param string $serviceInfo
* @param string $promotionCode
* @param \ColissimoPostage\StructType\Address $address
*/
public function __construct($addresseeParcelRef = null, $codeBarForReference = null, $serviceInfo = null, $promotionCode = null, \ColissimoPostage\StructType\Address $address = null)
{
$this
->setAddresseeParcelRef($addresseeParcelRef)
->setCodeBarForReference($codeBarForReference)
->setServiceInfo($serviceInfo)
->setPromotionCode($promotionCode)
->setAddress($address);
}
/**
* Get addresseeParcelRef value
* @return string|null
*/
public function getAddresseeParcelRef()
{
return $this->addresseeParcelRef;
}
/**
* Set addresseeParcelRef value
* @param string $addresseeParcelRef
* @return \ColissimoPostage\StructType\Addressee
*/
public function setAddresseeParcelRef($addresseeParcelRef = null)
{
// validation for constraint: string
if (!is_null($addresseeParcelRef) && !is_string($addresseeParcelRef)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($addresseeParcelRef)), __LINE__);
}
$this->addresseeParcelRef = $addresseeParcelRef;
return $this;
}
/**
* Get codeBarForReference value
* @return bool|null
*/
public function getCodeBarForReference()
{
return $this->codeBarForReference;
}
/**
* Set codeBarForReference value
* @param bool $codeBarForReference
* @return \ColissimoPostage\StructType\Addressee
*/
public function setCodeBarForReference($codeBarForReference = null)
{
// validation for constraint: boolean
if (!is_null($codeBarForReference) && !is_bool($codeBarForReference)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a bool, "%s" given', gettype($codeBarForReference)), __LINE__);
}
$this->codeBarForReference = $codeBarForReference;
return $this;
}
/**
* Get serviceInfo value
* @return string|null
*/
public function getServiceInfo()
{
return $this->serviceInfo;
}
/**
* Set serviceInfo value
* @param string $serviceInfo
* @return \ColissimoPostage\StructType\Addressee
*/
public function setServiceInfo($serviceInfo = null)
{
// validation for constraint: string
if (!is_null($serviceInfo) && !is_string($serviceInfo)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($serviceInfo)), __LINE__);
}
$this->serviceInfo = $serviceInfo;
return $this;
}
/**
* Get promotionCode value
* @return string|null
*/
public function getPromotionCode()
{
return $this->promotionCode;
}
/**
* Set promotionCode value
* @param string $promotionCode
* @return \ColissimoPostage\StructType\Addressee
*/
public function setPromotionCode($promotionCode = null)
{
// validation for constraint: string
if (!is_null($promotionCode) && !is_string($promotionCode)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($promotionCode)), __LINE__);
}
$this->promotionCode = $promotionCode;
return $this;
}
/**
* Get address value
* @return \ColissimoPostage\StructType\Address|null
*/
public function getAddress()
{
return $this->address;
}
/**
* Set address value
* @param \ColissimoPostage\StructType\Address $address
* @return \ColissimoPostage\StructType\Addressee
*/
public function setAddress(\ColissimoPostage\StructType\Address $address = null)
{
$this->address = $address;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\Addressee
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,315 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for article StructType
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class Article extends AbstractStructBase
{
/**
* The description
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $description;
/**
* The quantity
* @var int
*/
public $quantity;
/**
* The weight
* @var float
*/
public $weight;
/**
* The value
* @var float
*/
public $value;
/**
* The hsCode
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $hsCode;
/**
* The originCountry
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $originCountry;
/**
* The currency
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $currency;
/**
* The artref
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $artref;
/**
* The originalIdent
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $originalIdent;
/**
* Constructor method for article
* @uses Article::setDescription()
* @uses Article::setQuantity()
* @uses Article::setWeight()
* @uses Article::setValue()
* @uses Article::setHsCode()
* @uses Article::setOriginCountry()
* @uses Article::setCurrency()
* @uses Article::setArtref()
* @uses Article::setOriginalIdent()
* @param string $description
* @param int $quantity
* @param float $weight
* @param float $value
* @param string $hsCode
* @param string $originCountry
* @param string $currency
* @param string $artref
* @param string $originalIdent
*/
public function __construct($description = null, $quantity = null, $weight = null, $value = null, $hsCode = null, $originCountry = null, $currency = null, $artref = null, $originalIdent = null)
{
$this
->setDescription($description)
->setQuantity($quantity)
->setWeight($weight)
->setValue($value)
->setHsCode($hsCode)
->setOriginCountry($originCountry)
->setCurrency($currency)
->setArtref($artref)
->setOriginalIdent($originalIdent);
}
/**
* Get description value
* @return string|null
*/
public function getDescription()
{
return $this->description;
}
/**
* Set description value
* @param string $description
* @return \ColissimoPostage\StructType\Article
*/
public function setDescription($description = null)
{
// validation for constraint: string
if (!is_null($description) && !is_string($description)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($description)), __LINE__);
}
$this->description = $description;
return $this;
}
/**
* Get quantity value
* @return int|null
*/
public function getQuantity()
{
return $this->quantity;
}
/**
* Set quantity value
* @param int $quantity
* @return \ColissimoPostage\StructType\Article
*/
public function setQuantity($quantity = null)
{
// validation for constraint: int
if (!is_null($quantity) && !is_numeric($quantity)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($quantity)), __LINE__);
}
$this->quantity = $quantity;
return $this;
}
/**
* Get weight value
* @return float|null
*/
public function getWeight()
{
return $this->weight;
}
/**
* Set weight value
* @param float $weight
* @return \ColissimoPostage\StructType\Article
*/
public function setWeight($weight = null)
{
$this->weight = $weight;
return $this;
}
/**
* Get value value
* @return float|null
*/
public function getValue()
{
return $this->value;
}
/**
* Set value value
* @param float $value
* @return \ColissimoPostage\StructType\Article
*/
public function setValue($value = null)
{
$this->value = $value;
return $this;
}
/**
* Get hsCode value
* @return string|null
*/
public function getHsCode()
{
return $this->hsCode;
}
/**
* Set hsCode value
* @param string $hsCode
* @return \ColissimoPostage\StructType\Article
*/
public function setHsCode($hsCode = null)
{
// validation for constraint: string
if (!is_null($hsCode) && !is_string($hsCode)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($hsCode)), __LINE__);
}
$this->hsCode = $hsCode;
return $this;
}
/**
* Get originCountry value
* @return string|null
*/
public function getOriginCountry()
{
return $this->originCountry;
}
/**
* Set originCountry value
* @param string $originCountry
* @return \ColissimoPostage\StructType\Article
*/
public function setOriginCountry($originCountry = null)
{
// validation for constraint: string
if (!is_null($originCountry) && !is_string($originCountry)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($originCountry)), __LINE__);
}
$this->originCountry = $originCountry;
return $this;
}
/**
* Get currency value
* @return string|null
*/
public function getCurrency()
{
return $this->currency;
}
/**
* Set currency value
* @param string $currency
* @return \ColissimoPostage\StructType\Article
*/
public function setCurrency($currency = null)
{
// validation for constraint: string
if (!is_null($currency) && !is_string($currency)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($currency)), __LINE__);
}
$this->currency = $currency;
return $this;
}
/**
* Get artref value
* @return string|null
*/
public function getArtref()
{
return $this->artref;
}
/**
* Set artref value
* @param string $artref
* @return \ColissimoPostage\StructType\Article
*/
public function setArtref($artref = null)
{
// validation for constraint: string
if (!is_null($artref) && !is_string($artref)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($artref)), __LINE__);
}
$this->artref = $artref;
return $this;
}
/**
* Get originalIdent value
* @return string|null
*/
public function getOriginalIdent()
{
return $this->originalIdent;
}
/**
* Set originalIdent value
* @param string $originalIdent
* @return \ColissimoPostage\StructType\Article
*/
public function setOriginalIdent($originalIdent = null)
{
// validation for constraint: string
if (!is_null($originalIdent) && !is_string($originalIdent)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($originalIdent)), __LINE__);
}
$this->originalIdent = $originalIdent;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\Article
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,102 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for baseResponse StructType
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
abstract class BaseResponse extends AbstractStructBase
{
/**
* The messages
* Meta informations extracted from the WSDL
* - maxOccurs: unbounded
* - minOccurs: 0
* - nillable: true
* @var \ColissimoPostage\StructType\Message[]
*/
public $messages;
/**
* Constructor method for baseResponse
* @uses BaseResponse::setMessages()
* @param \ColissimoPostage\StructType\Message[] $messages
*/
public function __construct(array $messages = array())
{
$this
->setMessages($messages);
}
/**
* Get messages value
* An additional test has been added (isset) before returning the property value as
* this property may have been unset before, due to the fact that this property is
* removable from the request (nillable=true+minOccurs=0)
* @return \ColissimoPostage\StructType\Message[]|null
*/
public function getMessages()
{
return isset($this->messages) ? $this->messages : null;
}
/**
* Set messages value
* This property is removable from request (nillable=true+minOccurs=0), therefore
* if the value assigned to this property is null, it is removed from this object
* @throws \InvalidArgumentException
* @param \ColissimoPostage\StructType\Message[] $messages
* @return \ColissimoPostage\StructType\BaseResponse
*/
public function setMessages(array $messages = array())
{
foreach ($messages as $baseResponseMessagesItem) {
// validation for constraint: itemType
if (!$baseResponseMessagesItem instanceof \ColissimoPostage\StructType\Message) {
throw new \InvalidArgumentException(sprintf('The messages property can only contain items of \ColissimoPostage\StructType\Message, "%s" given', is_object($baseResponseMessagesItem) ? get_class($baseResponseMessagesItem) : gettype($baseResponseMessagesItem)), __LINE__);
}
}
if (is_null($messages) || (is_array($messages) && empty($messages))) {
unset($this->messages);
} else {
$this->messages = $messages;
}
return $this;
}
/**
* Add item to messages value
* @throws \InvalidArgumentException
* @param \ColissimoPostage\StructType\Message $item
* @return \ColissimoPostage\StructType\BaseResponse
*/
public function addToMessages(\ColissimoPostage\StructType\Message $item)
{
// validation for constraint: itemType
if (!$item instanceof \ColissimoPostage\StructType\Message) {
throw new \InvalidArgumentException(sprintf('The messages property can only contain items of \ColissimoPostage\StructType\Message, "%s" given', is_object($item) ? get_class($item) : gettype($item)), __LINE__);
}
$this->messages[] = $item;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\BaseResponse
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,161 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for belgiumLabel StructType
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class BelgiumLabel extends AbstractStructBase
{
/**
* The codeBarre
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $codeBarre;
/**
* The codeVAS
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var \ColissimoPostage\StructType\CodeVAS
*/
public $codeVAS;
/**
* The identification
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $identification;
/**
* The returnAddress
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var \ColissimoPostage\StructType\ReturnAddressBelgium
*/
public $returnAddress;
/**
* Constructor method for belgiumLabel
* @uses BelgiumLabel::setCodeBarre()
* @uses BelgiumLabel::setCodeVAS()
* @uses BelgiumLabel::setIdentification()
* @uses BelgiumLabel::setReturnAddress()
* @param string $codeBarre
* @param \ColissimoPostage\StructType\CodeVAS $codeVAS
* @param string $identification
* @param \ColissimoPostage\StructType\ReturnAddressBelgium $returnAddress
*/
public function __construct($codeBarre = null, \ColissimoPostage\StructType\CodeVAS $codeVAS = null, $identification = null, \ColissimoPostage\StructType\ReturnAddressBelgium $returnAddress = null)
{
$this
->setCodeBarre($codeBarre)
->setCodeVAS($codeVAS)
->setIdentification($identification)
->setReturnAddress($returnAddress);
}
/**
* Get codeBarre value
* @return string|null
*/
public function getCodeBarre()
{
return $this->codeBarre;
}
/**
* Set codeBarre value
* @param string $codeBarre
* @return \ColissimoPostage\StructType\BelgiumLabel
*/
public function setCodeBarre($codeBarre = null)
{
// validation for constraint: string
if (!is_null($codeBarre) && !is_string($codeBarre)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($codeBarre)), __LINE__);
}
$this->codeBarre = $codeBarre;
return $this;
}
/**
* Get codeVAS value
* @return \ColissimoPostage\StructType\CodeVAS|null
*/
public function getCodeVAS()
{
return $this->codeVAS;
}
/**
* Set codeVAS value
* @param \ColissimoPostage\StructType\CodeVAS $codeVAS
* @return \ColissimoPostage\StructType\BelgiumLabel
*/
public function setCodeVAS(\ColissimoPostage\StructType\CodeVAS $codeVAS = null)
{
$this->codeVAS = $codeVAS;
return $this;
}
/**
* Get identification value
* @return string|null
*/
public function getIdentification()
{
return $this->identification;
}
/**
* Set identification value
* @param string $identification
* @return \ColissimoPostage\StructType\BelgiumLabel
*/
public function setIdentification($identification = null)
{
// validation for constraint: string
if (!is_null($identification) && !is_string($identification)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($identification)), __LINE__);
}
$this->identification = $identification;
return $this;
}
/**
* Get returnAddress value
* @return \ColissimoPostage\StructType\ReturnAddressBelgium|null
*/
public function getReturnAddress()
{
return $this->returnAddress;
}
/**
* Set returnAddress value
* @param \ColissimoPostage\StructType\ReturnAddressBelgium $returnAddress
* @return \ColissimoPostage\StructType\BelgiumLabel
*/
public function setReturnAddress(\ColissimoPostage\StructType\ReturnAddressBelgium $returnAddress = null)
{
$this->returnAddress = $returnAddress;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\BelgiumLabel
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,101 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for bordereau StructType
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class Bordereau extends AbstractStructBase
{
/**
* The bordereauDataHandler
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $bordereauDataHandler;
/**
* The bordereauHeader
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var \ColissimoPostage\StructType\BordereauHeader
*/
public $bordereauHeader;
/**
* Constructor method for bordereau
* @uses Bordereau::setBordereauDataHandler()
* @uses Bordereau::setBordereauHeader()
* @param string $bordereauDataHandler
* @param \ColissimoPostage\StructType\BordereauHeader $bordereauHeader
*/
public function __construct($bordereauDataHandler = null, \ColissimoPostage\StructType\BordereauHeader $bordereauHeader = null)
{
$this
->setBordereauDataHandler($bordereauDataHandler)
->setBordereauHeader($bordereauHeader);
}
/**
* Get bordereauDataHandler value
* @return string|null
*/
public function getBordereauDataHandler()
{
return $this->bordereauDataHandler;
}
/**
* Set bordereauDataHandler value
* @param string $bordereauDataHandler
* @return \ColissimoPostage\StructType\Bordereau
*/
public function setBordereauDataHandler($bordereauDataHandler = null)
{
// validation for constraint: string
if (!is_null($bordereauDataHandler) && !is_string($bordereauDataHandler)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($bordereauDataHandler)), __LINE__);
}
$this->bordereauDataHandler = $bordereauDataHandler;
return $this;
}
/**
* Get bordereauHeader value
* @return \ColissimoPostage\StructType\BordereauHeader|null
*/
public function getBordereauHeader()
{
return $this->bordereauHeader;
}
/**
* Set bordereauHeader value
* @param \ColissimoPostage\StructType\BordereauHeader $bordereauHeader
* @return \ColissimoPostage\StructType\Bordereau
*/
public function setBordereauHeader(\ColissimoPostage\StructType\BordereauHeader $bordereauHeader = null)
{
$this->bordereauHeader = $bordereauHeader;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\Bordereau
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,293 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for bordereauHeader StructType
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class BordereauHeader extends AbstractStructBase
{
/**
* The address
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $address;
/**
* The bordereauNumber
* @var int
*/
public $bordereauNumber;
/**
* The clientNumber
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $clientNumber;
/**
* The codeSitePCH
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var int
*/
public $codeSitePCH;
/**
* The company
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $company;
/**
* The nameSitePCH
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $nameSitePCH;
/**
* The numberOfParcels
* @var int
*/
public $numberOfParcels;
/**
* The publishingDate
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $publishingDate;
/**
* Constructor method for bordereauHeader
* @uses BordereauHeader::setAddress()
* @uses BordereauHeader::setBordereauNumber()
* @uses BordereauHeader::setClientNumber()
* @uses BordereauHeader::setCodeSitePCH()
* @uses BordereauHeader::setCompany()
* @uses BordereauHeader::setNameSitePCH()
* @uses BordereauHeader::setNumberOfParcels()
* @uses BordereauHeader::setPublishingDate()
* @param string $address
* @param int $bordereauNumber
* @param string $clientNumber
* @param int $codeSitePCH
* @param string $company
* @param string $nameSitePCH
* @param int $numberOfParcels
* @param string $publishingDate
*/
public function __construct($address = null, $bordereauNumber = null, $clientNumber = null, $codeSitePCH = null, $company = null, $nameSitePCH = null, $numberOfParcels = null, $publishingDate = null)
{
$this
->setAddress($address)
->setBordereauNumber($bordereauNumber)
->setClientNumber($clientNumber)
->setCodeSitePCH($codeSitePCH)
->setCompany($company)
->setNameSitePCH($nameSitePCH)
->setNumberOfParcels($numberOfParcels)
->setPublishingDate($publishingDate);
}
/**
* Get address value
* @return string|null
*/
public function getAddress()
{
return $this->address;
}
/**
* Set address value
* @param string $address
* @return \ColissimoPostage\StructType\BordereauHeader
*/
public function setAddress($address = null)
{
// validation for constraint: string
if (!is_null($address) && !is_string($address)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($address)), __LINE__);
}
$this->address = $address;
return $this;
}
/**
* Get bordereauNumber value
* @return int|null
*/
public function getBordereauNumber()
{
return $this->bordereauNumber;
}
/**
* Set bordereauNumber value
* @param int $bordereauNumber
* @return \ColissimoPostage\StructType\BordereauHeader
*/
public function setBordereauNumber($bordereauNumber = null)
{
// validation for constraint: int
if (!is_null($bordereauNumber) && !is_numeric($bordereauNumber)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($bordereauNumber)), __LINE__);
}
$this->bordereauNumber = $bordereauNumber;
return $this;
}
/**
* Get clientNumber value
* @return string|null
*/
public function getClientNumber()
{
return $this->clientNumber;
}
/**
* Set clientNumber value
* @param string $clientNumber
* @return \ColissimoPostage\StructType\BordereauHeader
*/
public function setClientNumber($clientNumber = null)
{
// validation for constraint: string
if (!is_null($clientNumber) && !is_string($clientNumber)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($clientNumber)), __LINE__);
}
$this->clientNumber = $clientNumber;
return $this;
}
/**
* Get codeSitePCH value
* @return int|null
*/
public function getCodeSitePCH()
{
return $this->codeSitePCH;
}
/**
* Set codeSitePCH value
* @param int $codeSitePCH
* @return \ColissimoPostage\StructType\BordereauHeader
*/
public function setCodeSitePCH($codeSitePCH = null)
{
// validation for constraint: int
if (!is_null($codeSitePCH) && !is_numeric($codeSitePCH)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($codeSitePCH)), __LINE__);
}
$this->codeSitePCH = $codeSitePCH;
return $this;
}
/**
* Get company value
* @return string|null
*/
public function getCompany()
{
return $this->company;
}
/**
* Set company value
* @param string $company
* @return \ColissimoPostage\StructType\BordereauHeader
*/
public function setCompany($company = null)
{
// validation for constraint: string
if (!is_null($company) && !is_string($company)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($company)), __LINE__);
}
$this->company = $company;
return $this;
}
/**
* Get nameSitePCH value
* @return string|null
*/
public function getNameSitePCH()
{
return $this->nameSitePCH;
}
/**
* Set nameSitePCH value
* @param string $nameSitePCH
* @return \ColissimoPostage\StructType\BordereauHeader
*/
public function setNameSitePCH($nameSitePCH = null)
{
// validation for constraint: string
if (!is_null($nameSitePCH) && !is_string($nameSitePCH)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($nameSitePCH)), __LINE__);
}
$this->nameSitePCH = $nameSitePCH;
return $this;
}
/**
* Get numberOfParcels value
* @return int|null
*/
public function getNumberOfParcels()
{
return $this->numberOfParcels;
}
/**
* Set numberOfParcels value
* @param int $numberOfParcels
* @return \ColissimoPostage\StructType\BordereauHeader
*/
public function setNumberOfParcels($numberOfParcels = null)
{
// validation for constraint: int
if (!is_null($numberOfParcels) && !is_numeric($numberOfParcels)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($numberOfParcels)), __LINE__);
}
$this->numberOfParcels = $numberOfParcels;
return $this;
}
/**
* Get publishingDate value
* @return string|null
*/
public function getPublishingDate()
{
return $this->publishingDate;
}
/**
* Set publishingDate value
* @param string $publishingDate
* @return \ColissimoPostage\StructType\BordereauHeader
*/
public function setPublishingDate($publishingDate = null)
{
// validation for constraint: string
if (!is_null($publishingDate) && !is_string($publishingDate)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($publishingDate)), __LINE__);
}
$this->publishingDate = $publishingDate;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\BordereauHeader
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,69 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for bordereauResponse StructType
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class BordereauResponse extends BaseResponse
{
/**
* The bordereau
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var \ColissimoPostage\StructType\Bordereau
*/
public $bordereau;
/**
* Constructor method for bordereauResponse
* @uses BordereauResponse::setBordereau()
* @param \ColissimoPostage\StructType\Bordereau $bordereau
*/
public function __construct(\ColissimoPostage\StructType\Bordereau $bordereau = null)
{
$this
->setBordereau($bordereau);
}
/**
* Get bordereau value
* @return \ColissimoPostage\StructType\Bordereau|null
*/
public function getBordereau()
{
return $this->bordereau;
}
/**
* Set bordereau value
* @param \ColissimoPostage\StructType\Bordereau $bordereau
* @return \ColissimoPostage\StructType\BordereauResponse
*/
public function setBordereau(\ColissimoPostage\StructType\Bordereau $bordereau = null)
{
$this->bordereau = $bordereau;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\BordereauResponse
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,71 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for category StructType
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class Category extends AbstractStructBase
{
/**
* The value
* @var int
*/
public $value;
/**
* Constructor method for category
* @uses Category::setValue()
* @param int $value
*/
public function __construct($value = null)
{
$this
->setValue($value);
}
/**
* Get value value
* @return int|null
*/
public function getValue()
{
return $this->value;
}
/**
* Set value value
* @param int $value
* @return \ColissimoPostage\StructType\Category
*/
public function setValue($value = null)
{
// validation for constraint: int
if (!is_null($value) && !is_numeric($value)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($value)), __LINE__);
}
$this->value = $value;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\Category
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,71 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for checkGenerateLabel StructType
* Meta informations extracted from the WSDL
* - type: tns:checkGenerateLabel
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class CheckGenerateLabel extends AbstractStructBase
{
/**
* The checkGenerateLabelRequest
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var \ColissimoPostage\StructType\CheckGenerateLabelRequest
*/
public $checkGenerateLabelRequest;
/**
* Constructor method for checkGenerateLabel
* @uses CheckGenerateLabel::setCheckGenerateLabelRequest()
* @param \ColissimoPostage\StructType\CheckGenerateLabelRequest $checkGenerateLabelRequest
*/
public function __construct(\ColissimoPostage\StructType\CheckGenerateLabelRequest $checkGenerateLabelRequest = null)
{
$this
->setCheckGenerateLabelRequest($checkGenerateLabelRequest);
}
/**
* Get checkGenerateLabelRequest value
* @return \ColissimoPostage\StructType\CheckGenerateLabelRequest|null
*/
public function getCheckGenerateLabelRequest()
{
return $this->checkGenerateLabelRequest;
}
/**
* Set checkGenerateLabelRequest value
* @param \ColissimoPostage\StructType\CheckGenerateLabelRequest $checkGenerateLabelRequest
* @return \ColissimoPostage\StructType\CheckGenerateLabel
*/
public function setCheckGenerateLabelRequest(\ColissimoPostage\StructType\CheckGenerateLabelRequest $checkGenerateLabelRequest = null)
{
$this->checkGenerateLabelRequest = $checkGenerateLabelRequest;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\CheckGenerateLabel
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,183 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for checkGenerateLabelRequest StructType
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class CheckGenerateLabelRequest extends AbstractStructBase
{
/**
* The contractNumber
* @var string
*/
public $contractNumber;
/**
* The password
* @var string
*/
public $password;
/**
* The outputFormat
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var \ColissimoPostage\StructType\OutputFormat
*/
public $outputFormat;
/**
* The letter
* @var \ColissimoPostage\StructType\Letter
*/
public $letter;
/**
* The fields
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var \ColissimoPostage\StructType\Fields
*/
public $fields;
/**
* Constructor method for checkGenerateLabelRequest
* @uses CheckGenerateLabelRequest::setContractNumber()
* @uses CheckGenerateLabelRequest::setPassword()
* @uses CheckGenerateLabelRequest::setOutputFormat()
* @uses CheckGenerateLabelRequest::setLetter()
* @uses CheckGenerateLabelRequest::setFields()
* @param string $contractNumber
* @param string $password
* @param \ColissimoPostage\StructType\OutputFormat $outputFormat
* @param \ColissimoPostage\StructType\Letter $letter
* @param \ColissimoPostage\StructType\Fields $fields
*/
public function __construct($contractNumber = null, $password = null, \ColissimoPostage\StructType\OutputFormat $outputFormat = null, \ColissimoPostage\StructType\Letter $letter = null, \ColissimoPostage\StructType\Fields $fields = null)
{
$this
->setContractNumber($contractNumber)
->setPassword($password)
->setOutputFormat($outputFormat)
->setLetter($letter)
->setFields($fields);
}
/**
* Get contractNumber value
* @return string|null
*/
public function getContractNumber()
{
return $this->contractNumber;
}
/**
* Set contractNumber value
* @param string $contractNumber
* @return \ColissimoPostage\StructType\CheckGenerateLabelRequest
*/
public function setContractNumber($contractNumber = null)
{
// validation for constraint: string
if (!is_null($contractNumber) && !is_string($contractNumber)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($contractNumber)), __LINE__);
}
$this->contractNumber = $contractNumber;
return $this;
}
/**
* Get password value
* @return string|null
*/
public function getPassword()
{
return $this->password;
}
/**
* Set password value
* @param string $password
* @return \ColissimoPostage\StructType\CheckGenerateLabelRequest
*/
public function setPassword($password = null)
{
// validation for constraint: string
if (!is_null($password) && !is_string($password)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($password)), __LINE__);
}
$this->password = $password;
return $this;
}
/**
* Get outputFormat value
* @return \ColissimoPostage\StructType\OutputFormat|null
*/
public function getOutputFormat()
{
return $this->outputFormat;
}
/**
* Set outputFormat value
* @param \ColissimoPostage\StructType\OutputFormat $outputFormat
* @return \ColissimoPostage\StructType\CheckGenerateLabelRequest
*/
public function setOutputFormat(\ColissimoPostage\StructType\OutputFormat $outputFormat = null)
{
$this->outputFormat = $outputFormat;
return $this;
}
/**
* Get letter value
* @return \ColissimoPostage\StructType\Letter|null
*/
public function getLetter()
{
return $this->letter;
}
/**
* Set letter value
* @param \ColissimoPostage\StructType\Letter $letter
* @return \ColissimoPostage\StructType\CheckGenerateLabelRequest
*/
public function setLetter(\ColissimoPostage\StructType\Letter $letter = null)
{
$this->letter = $letter;
return $this;
}
/**
* Get fields value
* @return \ColissimoPostage\StructType\Fields|null
*/
public function getFields()
{
return $this->fields;
}
/**
* Set fields value
* @param \ColissimoPostage\StructType\Fields $fields
* @return \ColissimoPostage\StructType\CheckGenerateLabelRequest
*/
public function setFields(\ColissimoPostage\StructType\Fields $fields = null)
{
$this->fields = $fields;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\CheckGenerateLabelRequest
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,183 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for CheckGenerateLabelRequestType StructType
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class CheckGenerateLabelRequestType extends AbstractStructBase
{
/**
* The contractNumber
* @var string
*/
public $contractNumber;
/**
* The password
* @var string
*/
public $password;
/**
* The outputFormat
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var \ColissimoPostage\StructType\OutputFormat
*/
public $outputFormat;
/**
* The letter
* @var \ColissimoPostage\StructType\Letter
*/
public $letter;
/**
* The fields
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var \ColissimoPostage\StructType\Fields
*/
public $fields;
/**
* Constructor method for CheckGenerateLabelRequestType
* @uses CheckGenerateLabelRequestType::setContractNumber()
* @uses CheckGenerateLabelRequestType::setPassword()
* @uses CheckGenerateLabelRequestType::setOutputFormat()
* @uses CheckGenerateLabelRequestType::setLetter()
* @uses CheckGenerateLabelRequestType::setFields()
* @param string $contractNumber
* @param string $password
* @param \ColissimoPostage\StructType\OutputFormat $outputFormat
* @param \ColissimoPostage\StructType\Letter $letter
* @param \ColissimoPostage\StructType\Fields $fields
*/
public function __construct($contractNumber = null, $password = null, \ColissimoPostage\StructType\OutputFormat $outputFormat = null, \ColissimoPostage\StructType\Letter $letter = null, \ColissimoPostage\StructType\Fields $fields = null)
{
$this
->setContractNumber($contractNumber)
->setPassword($password)
->setOutputFormat($outputFormat)
->setLetter($letter)
->setFields($fields);
}
/**
* Get contractNumber value
* @return string|null
*/
public function getContractNumber()
{
return $this->contractNumber;
}
/**
* Set contractNumber value
* @param string $contractNumber
* @return \ColissimoPostage\StructType\CheckGenerateLabelRequestType
*/
public function setContractNumber($contractNumber = null)
{
// validation for constraint: string
if (!is_null($contractNumber) && !is_string($contractNumber)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($contractNumber)), __LINE__);
}
$this->contractNumber = $contractNumber;
return $this;
}
/**
* Get password value
* @return string|null
*/
public function getPassword()
{
return $this->password;
}
/**
* Set password value
* @param string $password
* @return \ColissimoPostage\StructType\CheckGenerateLabelRequestType
*/
public function setPassword($password = null)
{
// validation for constraint: string
if (!is_null($password) && !is_string($password)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($password)), __LINE__);
}
$this->password = $password;
return $this;
}
/**
* Get outputFormat value
* @return \ColissimoPostage\StructType\OutputFormat|null
*/
public function getOutputFormat()
{
return $this->outputFormat;
}
/**
* Set outputFormat value
* @param \ColissimoPostage\StructType\OutputFormat $outputFormat
* @return \ColissimoPostage\StructType\CheckGenerateLabelRequestType
*/
public function setOutputFormat(\ColissimoPostage\StructType\OutputFormat $outputFormat = null)
{
$this->outputFormat = $outputFormat;
return $this;
}
/**
* Get letter value
* @return \ColissimoPostage\StructType\Letter|null
*/
public function getLetter()
{
return $this->letter;
}
/**
* Set letter value
* @param \ColissimoPostage\StructType\Letter $letter
* @return \ColissimoPostage\StructType\CheckGenerateLabelRequestType
*/
public function setLetter(\ColissimoPostage\StructType\Letter $letter = null)
{
$this->letter = $letter;
return $this;
}
/**
* Get fields value
* @return \ColissimoPostage\StructType\Fields|null
*/
public function getFields()
{
return $this->fields;
}
/**
* Set fields value
* @param \ColissimoPostage\StructType\Fields $fields
* @return \ColissimoPostage\StructType\CheckGenerateLabelRequestType
*/
public function setFields(\ColissimoPostage\StructType\Fields $fields = null)
{
$this->fields = $fields;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\CheckGenerateLabelRequestType
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,71 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for checkGenerateLabelResponse StructType
* Meta informations extracted from the WSDL
* - type: tns:checkGenerateLabelResponse
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class CheckGenerateLabelResponse extends AbstractStructBase
{
/**
* The return
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var \ColissimoPostage\StructType\CheckGenerateLabelResponseType
*/
public $return;
/**
* Constructor method for checkGenerateLabelResponse
* @uses CheckGenerateLabelResponse::setReturn()
* @param \ColissimoPostage\StructType\CheckGenerateLabelResponseType $return
*/
public function __construct(\ColissimoPostage\StructType\CheckGenerateLabelResponseType $return = null)
{
$this
->setReturn($return);
}
/**
* Get return value
* @return \ColissimoPostage\StructType\CheckGenerateLabelResponseType|null
*/
public function getReturn()
{
return $this->return;
}
/**
* Set return value
* @param \ColissimoPostage\StructType\CheckGenerateLabelResponseType $return
* @return \ColissimoPostage\StructType\CheckGenerateLabelResponse
*/
public function setReturn(\ColissimoPostage\StructType\CheckGenerateLabelResponseType $return = null)
{
$this->return = $return;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\CheckGenerateLabelResponse
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,40 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for CheckGenerateLabelResponseType StructType
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class CheckGenerateLabelResponseType extends BaseResponse
{
/**
* Constructor method for CheckGenerateLabelResponseType
*/
public function __construct()
{
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\CheckGenerateLabelResponseType
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,585 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for codSenderAddress StructType
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class CodSenderAddress extends AbstractStructBase
{
/**
* The companyName
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $companyName;
/**
* The lastName
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $lastName;
/**
* The firstName
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $firstName;
/**
* The line0
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $line0;
/**
* The line1
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $line1;
/**
* The line2
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $line2;
/**
* The line3
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $line3;
/**
* The countryCode
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $countryCode;
/**
* The city
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $city;
/**
* The zipCode
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $zipCode;
/**
* The phoneNumber
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $phoneNumber;
/**
* The mobileNumber
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $mobileNumber;
/**
* The doorCode1
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $doorCode1;
/**
* The doorCode2
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $doorCode2;
/**
* The email
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $email;
/**
* The intercom
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $intercom;
/**
* The language
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $language;
/**
* Constructor method for codSenderAddress
* @uses CodSenderAddress::setCompanyName()
* @uses CodSenderAddress::setLastName()
* @uses CodSenderAddress::setFirstName()
* @uses CodSenderAddress::setLine0()
* @uses CodSenderAddress::setLine1()
* @uses CodSenderAddress::setLine2()
* @uses CodSenderAddress::setLine3()
* @uses CodSenderAddress::setCountryCode()
* @uses CodSenderAddress::setCity()
* @uses CodSenderAddress::setZipCode()
* @uses CodSenderAddress::setPhoneNumber()
* @uses CodSenderAddress::setMobileNumber()
* @uses CodSenderAddress::setDoorCode1()
* @uses CodSenderAddress::setDoorCode2()
* @uses CodSenderAddress::setEmail()
* @uses CodSenderAddress::setIntercom()
* @uses CodSenderAddress::setLanguage()
* @param string $companyName
* @param string $lastName
* @param string $firstName
* @param string $line0
* @param string $line1
* @param string $line2
* @param string $line3
* @param string $countryCode
* @param string $city
* @param string $zipCode
* @param string $phoneNumber
* @param string $mobileNumber
* @param string $doorCode1
* @param string $doorCode2
* @param string $email
* @param string $intercom
* @param string $language
*/
public function __construct($companyName = null, $lastName = null, $firstName = null, $line0 = null, $line1 = null, $line2 = null, $line3 = null, $countryCode = null, $city = null, $zipCode = null, $phoneNumber = null, $mobileNumber = null, $doorCode1 = null, $doorCode2 = null, $email = null, $intercom = null, $language = null)
{
$this
->setCompanyName($companyName)
->setLastName($lastName)
->setFirstName($firstName)
->setLine0($line0)
->setLine1($line1)
->setLine2($line2)
->setLine3($line3)
->setCountryCode($countryCode)
->setCity($city)
->setZipCode($zipCode)
->setPhoneNumber($phoneNumber)
->setMobileNumber($mobileNumber)
->setDoorCode1($doorCode1)
->setDoorCode2($doorCode2)
->setEmail($email)
->setIntercom($intercom)
->setLanguage($language);
}
/**
* Get companyName value
* @return string|null
*/
public function getCompanyName()
{
return $this->companyName;
}
/**
* Set companyName value
* @param string $companyName
* @return \ColissimoPostage\StructType\CodSenderAddress
*/
public function setCompanyName($companyName = null)
{
// validation for constraint: string
if (!is_null($companyName) && !is_string($companyName)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($companyName)), __LINE__);
}
$this->companyName = $companyName;
return $this;
}
/**
* Get lastName value
* @return string|null
*/
public function getLastName()
{
return $this->lastName;
}
/**
* Set lastName value
* @param string $lastName
* @return \ColissimoPostage\StructType\CodSenderAddress
*/
public function setLastName($lastName = null)
{
// validation for constraint: string
if (!is_null($lastName) && !is_string($lastName)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($lastName)), __LINE__);
}
$this->lastName = $lastName;
return $this;
}
/**
* Get firstName value
* @return string|null
*/
public function getFirstName()
{
return $this->firstName;
}
/**
* Set firstName value
* @param string $firstName
* @return \ColissimoPostage\StructType\CodSenderAddress
*/
public function setFirstName($firstName = null)
{
// validation for constraint: string
if (!is_null($firstName) && !is_string($firstName)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($firstName)), __LINE__);
}
$this->firstName = $firstName;
return $this;
}
/**
* Get line0 value
* @return string|null
*/
public function getLine0()
{
return $this->line0;
}
/**
* Set line0 value
* @param string $line0
* @return \ColissimoPostage\StructType\CodSenderAddress
*/
public function setLine0($line0 = null)
{
// validation for constraint: string
if (!is_null($line0) && !is_string($line0)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($line0)), __LINE__);
}
$this->line0 = $line0;
return $this;
}
/**
* Get line1 value
* @return string|null
*/
public function getLine1()
{
return $this->line1;
}
/**
* Set line1 value
* @param string $line1
* @return \ColissimoPostage\StructType\CodSenderAddress
*/
public function setLine1($line1 = null)
{
// validation for constraint: string
if (!is_null($line1) && !is_string($line1)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($line1)), __LINE__);
}
$this->line1 = $line1;
return $this;
}
/**
* Get line2 value
* @return string|null
*/
public function getLine2()
{
return $this->line2;
}
/**
* Set line2 value
* @param string $line2
* @return \ColissimoPostage\StructType\CodSenderAddress
*/
public function setLine2($line2 = null)
{
// validation for constraint: string
if (!is_null($line2) && !is_string($line2)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($line2)), __LINE__);
}
$this->line2 = $line2;
return $this;
}
/**
* Get line3 value
* @return string|null
*/
public function getLine3()
{
return $this->line3;
}
/**
* Set line3 value
* @param string $line3
* @return \ColissimoPostage\StructType\CodSenderAddress
*/
public function setLine3($line3 = null)
{
// validation for constraint: string
if (!is_null($line3) && !is_string($line3)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($line3)), __LINE__);
}
$this->line3 = $line3;
return $this;
}
/**
* Get countryCode value
* @return string|null
*/
public function getCountryCode()
{
return $this->countryCode;
}
/**
* Set countryCode value
* @param string $countryCode
* @return \ColissimoPostage\StructType\CodSenderAddress
*/
public function setCountryCode($countryCode = null)
{
// validation for constraint: string
if (!is_null($countryCode) && !is_string($countryCode)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($countryCode)), __LINE__);
}
$this->countryCode = $countryCode;
return $this;
}
/**
* Get city value
* @return string|null
*/
public function getCity()
{
return $this->city;
}
/**
* Set city value
* @param string $city
* @return \ColissimoPostage\StructType\CodSenderAddress
*/
public function setCity($city = null)
{
// validation for constraint: string
if (!is_null($city) && !is_string($city)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($city)), __LINE__);
}
$this->city = $city;
return $this;
}
/**
* Get zipCode value
* @return string|null
*/
public function getZipCode()
{
return $this->zipCode;
}
/**
* Set zipCode value
* @param string $zipCode
* @return \ColissimoPostage\StructType\CodSenderAddress
*/
public function setZipCode($zipCode = null)
{
// validation for constraint: string
if (!is_null($zipCode) && !is_string($zipCode)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($zipCode)), __LINE__);
}
$this->zipCode = $zipCode;
return $this;
}
/**
* Get phoneNumber value
* @return string|null
*/
public function getPhoneNumber()
{
return $this->phoneNumber;
}
/**
* Set phoneNumber value
* @param string $phoneNumber
* @return \ColissimoPostage\StructType\CodSenderAddress
*/
public function setPhoneNumber($phoneNumber = null)
{
// validation for constraint: string
if (!is_null($phoneNumber) && !is_string($phoneNumber)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($phoneNumber)), __LINE__);
}
$this->phoneNumber = $phoneNumber;
return $this;
}
/**
* Get mobileNumber value
* @return string|null
*/
public function getMobileNumber()
{
return $this->mobileNumber;
}
/**
* Set mobileNumber value
* @param string $mobileNumber
* @return \ColissimoPostage\StructType\CodSenderAddress
*/
public function setMobileNumber($mobileNumber = null)
{
// validation for constraint: string
if (!is_null($mobileNumber) && !is_string($mobileNumber)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($mobileNumber)), __LINE__);
}
$this->mobileNumber = $mobileNumber;
return $this;
}
/**
* Get doorCode1 value
* @return string|null
*/
public function getDoorCode1()
{
return $this->doorCode1;
}
/**
* Set doorCode1 value
* @param string $doorCode1
* @return \ColissimoPostage\StructType\CodSenderAddress
*/
public function setDoorCode1($doorCode1 = null)
{
// validation for constraint: string
if (!is_null($doorCode1) && !is_string($doorCode1)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($doorCode1)), __LINE__);
}
$this->doorCode1 = $doorCode1;
return $this;
}
/**
* Get doorCode2 value
* @return string|null
*/
public function getDoorCode2()
{
return $this->doorCode2;
}
/**
* Set doorCode2 value
* @param string $doorCode2
* @return \ColissimoPostage\StructType\CodSenderAddress
*/
public function setDoorCode2($doorCode2 = null)
{
// validation for constraint: string
if (!is_null($doorCode2) && !is_string($doorCode2)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($doorCode2)), __LINE__);
}
$this->doorCode2 = $doorCode2;
return $this;
}
/**
* Get email value
* @return string|null
*/
public function getEmail()
{
return $this->email;
}
/**
* Set email value
* @param string $email
* @return \ColissimoPostage\StructType\CodSenderAddress
*/
public function setEmail($email = null)
{
// validation for constraint: string
if (!is_null($email) && !is_string($email)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($email)), __LINE__);
}
$this->email = $email;
return $this;
}
/**
* Get intercom value
* @return string|null
*/
public function getIntercom()
{
return $this->intercom;
}
/**
* Set intercom value
* @param string $intercom
* @return \ColissimoPostage\StructType\CodSenderAddress
*/
public function setIntercom($intercom = null)
{
// validation for constraint: string
if (!is_null($intercom) && !is_string($intercom)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($intercom)), __LINE__);
}
$this->intercom = $intercom;
return $this;
}
/**
* Get language value
* @return string|null
*/
public function getLanguage()
{
return $this->language;
}
/**
* Set language value
* @param string $language
* @return \ColissimoPostage\StructType\CodSenderAddress
*/
public function setLanguage($language = null)
{
// validation for constraint: string
if (!is_null($language) && !is_string($language)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($language)), __LINE__);
}
$this->language = $language;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\CodSenderAddress
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,169 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for codeVAS StructType
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class CodeVAS extends AbstractStructBase
{
/**
* The deliveryMode
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $deliveryMode;
/**
* The mention
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $mention;
/**
* The reserve
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $reserve;
/**
* The signature
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $signature;
/**
* Constructor method for codeVAS
* @uses CodeVAS::setDeliveryMode()
* @uses CodeVAS::setMention()
* @uses CodeVAS::setReserve()
* @uses CodeVAS::setSignature()
* @param string $deliveryMode
* @param string $mention
* @param string $reserve
* @param string $signature
*/
public function __construct($deliveryMode = null, $mention = null, $reserve = null, $signature = null)
{
$this
->setDeliveryMode($deliveryMode)
->setMention($mention)
->setReserve($reserve)
->setSignature($signature);
}
/**
* Get deliveryMode value
* @return string|null
*/
public function getDeliveryMode()
{
return $this->deliveryMode;
}
/**
* Set deliveryMode value
* @param string $deliveryMode
* @return \ColissimoPostage\StructType\CodeVAS
*/
public function setDeliveryMode($deliveryMode = null)
{
// validation for constraint: string
if (!is_null($deliveryMode) && !is_string($deliveryMode)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($deliveryMode)), __LINE__);
}
$this->deliveryMode = $deliveryMode;
return $this;
}
/**
* Get mention value
* @return string|null
*/
public function getMention()
{
return $this->mention;
}
/**
* Set mention value
* @param string $mention
* @return \ColissimoPostage\StructType\CodeVAS
*/
public function setMention($mention = null)
{
// validation for constraint: string
if (!is_null($mention) && !is_string($mention)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($mention)), __LINE__);
}
$this->mention = $mention;
return $this;
}
/**
* Get reserve value
* @return string|null
*/
public function getReserve()
{
return $this->reserve;
}
/**
* Set reserve value
* @param string $reserve
* @return \ColissimoPostage\StructType\CodeVAS
*/
public function setReserve($reserve = null)
{
// validation for constraint: string
if (!is_null($reserve) && !is_string($reserve)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($reserve)), __LINE__);
}
$this->reserve = $reserve;
return $this;
}
/**
* Get signature value
* @return string|null
*/
public function getSignature()
{
return $this->signature;
}
/**
* Set signature value
* @param string $signature
* @return \ColissimoPostage\StructType\CodeVAS
*/
public function setSignature($signature = null)
{
// validation for constraint: string
if (!is_null($signature) && !is_string($signature)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($signature)), __LINE__);
}
$this->signature = $signature;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\CodeVAS
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,223 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for contents StructType
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class Contents extends AbstractStructBase
{
/**
* The article
* Meta informations extracted from the WSDL
* - maxOccurs: unbounded
* - minOccurs: 0
* - nillable: true
* @var \ColissimoPostage\StructType\Article[]
*/
public $article;
/**
* The category
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var \ColissimoPostage\StructType\Category
*/
public $category;
/**
* The original
* Meta informations extracted from the WSDL
* - maxOccurs: unbounded
* - minOccurs: 0
* - nillable: true
* @var \ColissimoPostage\StructType\Original[]
*/
public $original;
/**
* The explanations
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $explanations;
/**
* Constructor method for contents
* @uses Contents::setArticle()
* @uses Contents::setCategory()
* @uses Contents::setOriginal()
* @uses Contents::setExplanations()
* @param \ColissimoPostage\StructType\Article[] $article
* @param \ColissimoPostage\StructType\Category $category
* @param \ColissimoPostage\StructType\Original[] $original
* @param string $explanations
*/
public function __construct(array $article = array(), \ColissimoPostage\StructType\Category $category = null, array $original = array(), $explanations = null)
{
$this
->setArticle($article)
->setCategory($category)
->setOriginal($original)
->setExplanations($explanations);
}
/**
* Get article value
* An additional test has been added (isset) before returning the property value as
* this property may have been unset before, due to the fact that this property is
* removable from the request (nillable=true+minOccurs=0)
* @return \ColissimoPostage\StructType\Article[]|null
*/
public function getArticle()
{
return isset($this->article) ? $this->article : null;
}
/**
* Set article value
* This property is removable from request (nillable=true+minOccurs=0), therefore
* if the value assigned to this property is null, it is removed from this object
* @throws \InvalidArgumentException
* @param \ColissimoPostage\StructType\Article[] $article
* @return \ColissimoPostage\StructType\Contents
*/
public function setArticle(array $article = array())
{
foreach ($article as $contentsArticleItem) {
// validation for constraint: itemType
if (!$contentsArticleItem instanceof \ColissimoPostage\StructType\Article) {
throw new \InvalidArgumentException(sprintf('The article property can only contain items of \ColissimoPostage\StructType\Article, "%s" given', is_object($contentsArticleItem) ? get_class($contentsArticleItem) : gettype($contentsArticleItem)), __LINE__);
}
}
if (is_null($article) || (is_array($article) && empty($article))) {
unset($this->article);
} else {
$this->article = $article;
}
return $this;
}
/**
* Add item to article value
* @throws \InvalidArgumentException
* @param \ColissimoPostage\StructType\Article $item
* @return \ColissimoPostage\StructType\Contents
*/
public function addToArticle(\ColissimoPostage\StructType\Article $item)
{
// validation for constraint: itemType
if (!$item instanceof \ColissimoPostage\StructType\Article) {
throw new \InvalidArgumentException(sprintf('The article property can only contain items of \ColissimoPostage\StructType\Article, "%s" given', is_object($item) ? get_class($item) : gettype($item)), __LINE__);
}
$this->article[] = $item;
return $this;
}
/**
* Get category value
* @return \ColissimoPostage\StructType\Category|null
*/
public function getCategory()
{
return $this->category;
}
/**
* Set category value
* @param \ColissimoPostage\StructType\Category $category
* @return \ColissimoPostage\StructType\Contents
*/
public function setCategory(\ColissimoPostage\StructType\Category $category = null)
{
$this->category = $category;
return $this;
}
/**
* Get original value
* An additional test has been added (isset) before returning the property value as
* this property may have been unset before, due to the fact that this property is
* removable from the request (nillable=true+minOccurs=0)
* @return \ColissimoPostage\StructType\Original[]|null
*/
public function getOriginal()
{
return isset($this->original) ? $this->original : null;
}
/**
* Set original value
* This property is removable from request (nillable=true+minOccurs=0), therefore
* if the value assigned to this property is null, it is removed from this object
* @throws \InvalidArgumentException
* @param \ColissimoPostage\StructType\Original[] $original
* @return \ColissimoPostage\StructType\Contents
*/
public function setOriginal(array $original = array())
{
foreach ($original as $contentsOriginalItem) {
// validation for constraint: itemType
if (!$contentsOriginalItem instanceof \ColissimoPostage\StructType\Original) {
throw new \InvalidArgumentException(sprintf('The original property can only contain items of \ColissimoPostage\StructType\Original, "%s" given', is_object($contentsOriginalItem) ? get_class($contentsOriginalItem) : gettype($contentsOriginalItem)), __LINE__);
}
}
if (is_null($original) || (is_array($original) && empty($original))) {
unset($this->original);
} else {
$this->original = $original;
}
return $this;
}
/**
* Add item to original value
* @throws \InvalidArgumentException
* @param \ColissimoPostage\StructType\Original $item
* @return \ColissimoPostage\StructType\Contents
*/
public function addToOriginal(\ColissimoPostage\StructType\Original $item)
{
// validation for constraint: itemType
if (!$item instanceof \ColissimoPostage\StructType\Original) {
throw new \InvalidArgumentException(sprintf('The original property can only contain items of \ColissimoPostage\StructType\Original, "%s" given', is_object($item) ? get_class($item) : gettype($item)), __LINE__);
}
$this->original[] = $item;
return $this;
}
/**
* Get explanations value
* @return string|null
*/
public function getExplanations()
{
return $this->explanations;
}
/**
* Set explanations value
* @param string $explanations
* @return \ColissimoPostage\StructType\Contents
*/
public function setExplanations($explanations = null)
{
// validation for constraint: string
if (!is_null($explanations) && !is_string($explanations)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($explanations)), __LINE__);
}
$this->explanations = $explanations;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\Contents
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,353 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for customsDeclarations StructType
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class CustomsDeclarations extends AbstractStructBase
{
/**
* The includeCustomsDeclarations
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var bool
*/
public $includeCustomsDeclarations;
/**
* The contents
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var \ColissimoPostage\StructType\Contents
*/
public $contents;
/**
* The importersReference
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $importersReference;
/**
* The importersContact
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $importersContact;
/**
* The officeOrigin
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $officeOrigin;
/**
* The comments
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $comments;
/**
* The invoiceNumber
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $invoiceNumber;
/**
* The licenceNumber
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $licenceNumber;
/**
* The certificatNumber
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $certificatNumber;
/**
* The importerAddress
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var \ColissimoPostage\StructType\ImporterAddress
*/
public $importerAddress;
/**
* Constructor method for customsDeclarations
* @uses CustomsDeclarations::setIncludeCustomsDeclarations()
* @uses CustomsDeclarations::setContents()
* @uses CustomsDeclarations::setImportersReference()
* @uses CustomsDeclarations::setImportersContact()
* @uses CustomsDeclarations::setOfficeOrigin()
* @uses CustomsDeclarations::setComments()
* @uses CustomsDeclarations::setInvoiceNumber()
* @uses CustomsDeclarations::setLicenceNumber()
* @uses CustomsDeclarations::setCertificatNumber()
* @uses CustomsDeclarations::setImporterAddress()
* @param bool $includeCustomsDeclarations
* @param \ColissimoPostage\StructType\Contents $contents
* @param string $importersReference
* @param string $importersContact
* @param string $officeOrigin
* @param string $comments
* @param string $invoiceNumber
* @param string $licenceNumber
* @param string $certificatNumber
* @param \ColissimoPostage\StructType\ImporterAddress $importerAddress
*/
public function __construct($includeCustomsDeclarations = null, \ColissimoPostage\StructType\Contents $contents = null, $importersReference = null, $importersContact = null, $officeOrigin = null, $comments = null, $invoiceNumber = null, $licenceNumber = null, $certificatNumber = null, \ColissimoPostage\StructType\ImporterAddress $importerAddress = null)
{
$this
->setIncludeCustomsDeclarations($includeCustomsDeclarations)
->setContents($contents)
->setImportersReference($importersReference)
->setImportersContact($importersContact)
->setOfficeOrigin($officeOrigin)
->setComments($comments)
->setInvoiceNumber($invoiceNumber)
->setLicenceNumber($licenceNumber)
->setCertificatNumber($certificatNumber)
->setImporterAddress($importerAddress);
}
/**
* Get includeCustomsDeclarations value
* @return bool|null
*/
public function getIncludeCustomsDeclarations()
{
return $this->includeCustomsDeclarations;
}
/**
* Set includeCustomsDeclarations value
* @param bool $includeCustomsDeclarations
* @return \ColissimoPostage\StructType\CustomsDeclarations
*/
public function setIncludeCustomsDeclarations($includeCustomsDeclarations = null)
{
// validation for constraint: boolean
if (!is_null($includeCustomsDeclarations) && !is_bool($includeCustomsDeclarations)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a bool, "%s" given', gettype($includeCustomsDeclarations)), __LINE__);
}
$this->includeCustomsDeclarations = $includeCustomsDeclarations;
return $this;
}
/**
* Get contents value
* @return \ColissimoPostage\StructType\Contents|null
*/
public function getContents()
{
return $this->contents;
}
/**
* Set contents value
* @param \ColissimoPostage\StructType\Contents $contents
* @return \ColissimoPostage\StructType\CustomsDeclarations
*/
public function setContents(\ColissimoPostage\StructType\Contents $contents = null)
{
$this->contents = $contents;
return $this;
}
/**
* Get importersReference value
* @return string|null
*/
public function getImportersReference()
{
return $this->importersReference;
}
/**
* Set importersReference value
* @param string $importersReference
* @return \ColissimoPostage\StructType\CustomsDeclarations
*/
public function setImportersReference($importersReference = null)
{
// validation for constraint: string
if (!is_null($importersReference) && !is_string($importersReference)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($importersReference)), __LINE__);
}
$this->importersReference = $importersReference;
return $this;
}
/**
* Get importersContact value
* @return string|null
*/
public function getImportersContact()
{
return $this->importersContact;
}
/**
* Set importersContact value
* @param string $importersContact
* @return \ColissimoPostage\StructType\CustomsDeclarations
*/
public function setImportersContact($importersContact = null)
{
// validation for constraint: string
if (!is_null($importersContact) && !is_string($importersContact)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($importersContact)), __LINE__);
}
$this->importersContact = $importersContact;
return $this;
}
/**
* Get officeOrigin value
* @return string|null
*/
public function getOfficeOrigin()
{
return $this->officeOrigin;
}
/**
* Set officeOrigin value
* @param string $officeOrigin
* @return \ColissimoPostage\StructType\CustomsDeclarations
*/
public function setOfficeOrigin($officeOrigin = null)
{
// validation for constraint: string
if (!is_null($officeOrigin) && !is_string($officeOrigin)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($officeOrigin)), __LINE__);
}
$this->officeOrigin = $officeOrigin;
return $this;
}
/**
* Get comments value
* @return string|null
*/
public function getComments()
{
return $this->comments;
}
/**
* Set comments value
* @param string $comments
* @return \ColissimoPostage\StructType\CustomsDeclarations
*/
public function setComments($comments = null)
{
// validation for constraint: string
if (!is_null($comments) && !is_string($comments)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($comments)), __LINE__);
}
$this->comments = $comments;
return $this;
}
/**
* Get invoiceNumber value
* @return string|null
*/
public function getInvoiceNumber()
{
return $this->invoiceNumber;
}
/**
* Set invoiceNumber value
* @param string $invoiceNumber
* @return \ColissimoPostage\StructType\CustomsDeclarations
*/
public function setInvoiceNumber($invoiceNumber = null)
{
// validation for constraint: string
if (!is_null($invoiceNumber) && !is_string($invoiceNumber)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($invoiceNumber)), __LINE__);
}
$this->invoiceNumber = $invoiceNumber;
return $this;
}
/**
* Get licenceNumber value
* @return string|null
*/
public function getLicenceNumber()
{
return $this->licenceNumber;
}
/**
* Set licenceNumber value
* @param string $licenceNumber
* @return \ColissimoPostage\StructType\CustomsDeclarations
*/
public function setLicenceNumber($licenceNumber = null)
{
// validation for constraint: string
if (!is_null($licenceNumber) && !is_string($licenceNumber)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($licenceNumber)), __LINE__);
}
$this->licenceNumber = $licenceNumber;
return $this;
}
/**
* Get certificatNumber value
* @return string|null
*/
public function getCertificatNumber()
{
return $this->certificatNumber;
}
/**
* Set certificatNumber value
* @param string $certificatNumber
* @return \ColissimoPostage\StructType\CustomsDeclarations
*/
public function setCertificatNumber($certificatNumber = null)
{
// validation for constraint: string
if (!is_null($certificatNumber) && !is_string($certificatNumber)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($certificatNumber)), __LINE__);
}
$this->certificatNumber = $certificatNumber;
return $this;
}
/**
* Get importerAddress value
* @return \ColissimoPostage\StructType\ImporterAddress|null
*/
public function getImporterAddress()
{
return $this->importerAddress;
}
/**
* Set importerAddress value
* @param \ColissimoPostage\StructType\ImporterAddress $importerAddress
* @return \ColissimoPostage\StructType\CustomsDeclarations
*/
public function setImporterAddress(\ColissimoPostage\StructType\ImporterAddress $importerAddress = null)
{
$this->importerAddress = $importerAddress;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\CustomsDeclarations
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,137 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for elementVisual StructType
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class ElementVisual extends AbstractStructBase
{
/**
* The name
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $name;
/**
* The position
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $position;
/**
* The shortcut
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $shortcut;
/**
* Constructor method for elementVisual
* @uses ElementVisual::setName()
* @uses ElementVisual::setPosition()
* @uses ElementVisual::setShortcut()
* @param string $name
* @param string $position
* @param string $shortcut
*/
public function __construct($name = null, $position = null, $shortcut = null)
{
$this
->setName($name)
->setPosition($position)
->setShortcut($shortcut);
}
/**
* Get name value
* @return string|null
*/
public function getName()
{
return $this->name;
}
/**
* Set name value
* @param string $name
* @return \ColissimoPostage\StructType\ElementVisual
*/
public function setName($name = null)
{
// validation for constraint: string
if (!is_null($name) && !is_string($name)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($name)), __LINE__);
}
$this->name = $name;
return $this;
}
/**
* Get position value
* @return string|null
*/
public function getPosition()
{
return $this->position;
}
/**
* Set position value
* @param string $position
* @return \ColissimoPostage\StructType\ElementVisual
*/
public function setPosition($position = null)
{
// validation for constraint: string
if (!is_null($position) && !is_string($position)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($position)), __LINE__);
}
$this->position = $position;
return $this;
}
/**
* Get shortcut value
* @return string|null
*/
public function getShortcut()
{
return $this->shortcut;
}
/**
* Set shortcut value
* @param string $shortcut
* @return \ColissimoPostage\StructType\ElementVisual
*/
public function setShortcut($shortcut = null)
{
// validation for constraint: string
if (!is_null($shortcut) && !is_string($shortcut)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($shortcut)), __LINE__);
}
$this->shortcut = $shortcut;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\ElementVisual
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,101 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for field StructType
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class Field extends AbstractStructBase
{
/**
* The key
* @var string
*/
public $key;
/**
* The value
* @var string
*/
public $value;
/**
* Constructor method for field
* @uses Field::setKey()
* @uses Field::setValue()
* @param string $key
* @param string $value
*/
public function __construct($key = null, $value = null)
{
$this
->setKey($key)
->setValue($value);
}
/**
* Get key value
* @return string|null
*/
public function getKey()
{
return $this->key;
}
/**
* Set key value
* @param string $key
* @return \ColissimoPostage\StructType\Field
*/
public function setKey($key = null)
{
// validation for constraint: string
if (!is_null($key) && !is_string($key)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($key)), __LINE__);
}
$this->key = $key;
return $this;
}
/**
* Get value value
* @return string|null
*/
public function getValue()
{
return $this->value;
}
/**
* Set value value
* @param string $value
* @return \ColissimoPostage\StructType\Field
*/
public function setValue($value = null)
{
// validation for constraint: string
if (!is_null($value) && !is_string($value)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($value)), __LINE__);
}
$this->value = $value;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\Field
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,102 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for fields StructType
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class Fields extends AbstractStructBase
{
/**
* The field
* Meta informations extracted from the WSDL
* - maxOccurs: unbounded
* - minOccurs: 0
* - nillable: true
* @var \ColissimoPostage\StructType\Field[]
*/
public $field;
/**
* Constructor method for fields
* @uses Fields::setField()
* @param \ColissimoPostage\StructType\Field[] $field
*/
public function __construct(array $field = array())
{
$this
->setField($field);
}
/**
* Get field value
* An additional test has been added (isset) before returning the property value as
* this property may have been unset before, due to the fact that this property is
* removable from the request (nillable=true+minOccurs=0)
* @return \ColissimoPostage\StructType\Field[]|null
*/
public function getField()
{
return isset($this->field) ? $this->field : null;
}
/**
* Set field value
* This property is removable from request (nillable=true+minOccurs=0), therefore
* if the value assigned to this property is null, it is removed from this object
* @throws \InvalidArgumentException
* @param \ColissimoPostage\StructType\Field[] $field
* @return \ColissimoPostage\StructType\Fields
*/
public function setField(array $field = array())
{
foreach ($field as $fieldsFieldItem) {
// validation for constraint: itemType
if (!$fieldsFieldItem instanceof \ColissimoPostage\StructType\Field) {
throw new \InvalidArgumentException(sprintf('The field property can only contain items of \ColissimoPostage\StructType\Field, "%s" given', is_object($fieldsFieldItem) ? get_class($fieldsFieldItem) : gettype($fieldsFieldItem)), __LINE__);
}
}
if (is_null($field) || (is_array($field) && empty($field))) {
unset($this->field);
} else {
$this->field = $field;
}
return $this;
}
/**
* Add item to field value
* @throws \InvalidArgumentException
* @param \ColissimoPostage\StructType\Field $item
* @return \ColissimoPostage\StructType\Fields
*/
public function addToField(\ColissimoPostage\StructType\Field $item)
{
// validation for constraint: itemType
if (!$item instanceof \ColissimoPostage\StructType\Field) {
throw new \InvalidArgumentException(sprintf('The field property can only contain items of \ColissimoPostage\StructType\Field, "%s" given', is_object($item) ? get_class($item) : gettype($item)), __LINE__);
}
$this->field[] = $item;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\Fields
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,129 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for generateBordereauByParcelsNumbers StructType
* Meta informations extracted from the WSDL
* - type: tns:generateBordereauByParcelsNumbers
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class GenerateBordereauByParcelsNumbers extends AbstractStructBase
{
/**
* The contractNumber
* @var string
*/
public $contractNumber;
/**
* The password
* @var string
*/
public $password;
/**
* The generateBordereauParcelNumberList
* @var \ColissimoPostage\StructType\GenerateBordereauParcelNumberList
*/
public $generateBordereauParcelNumberList;
/**
* Constructor method for generateBordereauByParcelsNumbers
* @uses GenerateBordereauByParcelsNumbers::setContractNumber()
* @uses GenerateBordereauByParcelsNumbers::setPassword()
* @uses GenerateBordereauByParcelsNumbers::setGenerateBordereauParcelNumberList()
* @param string $contractNumber
* @param string $password
* @param \ColissimoPostage\StructType\GenerateBordereauParcelNumberList $generateBordereauParcelNumberList
*/
public function __construct($contractNumber = null, $password = null, \ColissimoPostage\StructType\GenerateBordereauParcelNumberList $generateBordereauParcelNumberList = null)
{
$this
->setContractNumber($contractNumber)
->setPassword($password)
->setGenerateBordereauParcelNumberList($generateBordereauParcelNumberList);
}
/**
* Get contractNumber value
* @return string|null
*/
public function getContractNumber()
{
return $this->contractNumber;
}
/**
* Set contractNumber value
* @param string $contractNumber
* @return \ColissimoPostage\StructType\GenerateBordereauByParcelsNumbers
*/
public function setContractNumber($contractNumber = null)
{
// validation for constraint: string
if (!is_null($contractNumber) && !is_string($contractNumber)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($contractNumber)), __LINE__);
}
$this->contractNumber = $contractNumber;
return $this;
}
/**
* Get password value
* @return string|null
*/
public function getPassword()
{
return $this->password;
}
/**
* Set password value
* @param string $password
* @return \ColissimoPostage\StructType\GenerateBordereauByParcelsNumbers
*/
public function setPassword($password = null)
{
// validation for constraint: string
if (!is_null($password) && !is_string($password)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($password)), __LINE__);
}
$this->password = $password;
return $this;
}
/**
* Get generateBordereauParcelNumberList value
* @return \ColissimoPostage\StructType\GenerateBordereauParcelNumberList|null
*/
public function getGenerateBordereauParcelNumberList()
{
return $this->generateBordereauParcelNumberList;
}
/**
* Set generateBordereauParcelNumberList value
* @param \ColissimoPostage\StructType\GenerateBordereauParcelNumberList $generateBordereauParcelNumberList
* @return \ColissimoPostage\StructType\GenerateBordereauByParcelsNumbers
*/
public function setGenerateBordereauParcelNumberList(\ColissimoPostage\StructType\GenerateBordereauParcelNumberList $generateBordereauParcelNumberList = null)
{
$this->generateBordereauParcelNumberList = $generateBordereauParcelNumberList;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\GenerateBordereauByParcelsNumbers
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,71 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for generateBordereauByParcelsNumbersResponse StructType
* Meta informations extracted from the WSDL
* - type: tns:generateBordereauByParcelsNumbersResponse
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class GenerateBordereauByParcelsNumbersResponse extends AbstractStructBase
{
/**
* The return
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var \ColissimoPostage\StructType\BordereauResponse
*/
public $return;
/**
* Constructor method for generateBordereauByParcelsNumbersResponse
* @uses GenerateBordereauByParcelsNumbersResponse::setReturn()
* @param \ColissimoPostage\StructType\BordereauResponse $return
*/
public function __construct(\ColissimoPostage\StructType\BordereauResponse $return = null)
{
$this
->setReturn($return);
}
/**
* Get return value
* @return \ColissimoPostage\StructType\BordereauResponse|null
*/
public function getReturn()
{
return $this->return;
}
/**
* Set return value
* @param \ColissimoPostage\StructType\BordereauResponse $return
* @return \ColissimoPostage\StructType\GenerateBordereauByParcelsNumbersResponse
*/
public function setReturn(\ColissimoPostage\StructType\BordereauResponse $return = null)
{
$this->return = $return;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\GenerateBordereauByParcelsNumbersResponse
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,91 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for generateBordereauParcelNumberList StructType
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class GenerateBordereauParcelNumberList extends AbstractStructBase
{
/**
* The parcelsNumbers
* Meta informations extracted from the WSDL
* - maxOccurs: unbounded
* @var string[]
*/
public $parcelsNumbers;
/**
* Constructor method for generateBordereauParcelNumberList
* @uses GenerateBordereauParcelNumberList::setParcelsNumbers()
* @param string[] $parcelsNumbers
*/
public function __construct(array $parcelsNumbers = array())
{
$this
->setParcelsNumbers($parcelsNumbers);
}
/**
* Get parcelsNumbers value
* @return string[]|null
*/
public function getParcelsNumbers()
{
return $this->parcelsNumbers;
}
/**
* Set parcelsNumbers value
* @throws \InvalidArgumentException
* @param string[] $parcelsNumbers
* @return \ColissimoPostage\StructType\GenerateBordereauParcelNumberList
*/
public function setParcelsNumbers(array $parcelsNumbers = array())
{
foreach ($parcelsNumbers as $generateBordereauParcelNumberListParcelsNumbersItem) {
// validation for constraint: itemType
if (!is_string($generateBordereauParcelNumberListParcelsNumbersItem)) {
throw new \InvalidArgumentException(sprintf('The parcelsNumbers property can only contain items of string, "%s" given', is_object($generateBordereauParcelNumberListParcelsNumbersItem) ? get_class($generateBordereauParcelNumberListParcelsNumbersItem) : gettype($generateBordereauParcelNumberListParcelsNumbersItem)), __LINE__);
}
}
$this->parcelsNumbers = $parcelsNumbers;
return $this;
}
/**
* Add item to parcelsNumbers value
* @throws \InvalidArgumentException
* @param string $item
* @return \ColissimoPostage\StructType\GenerateBordereauParcelNumberList
*/
public function addToParcelsNumbers($item)
{
// validation for constraint: itemType
if (!is_string($item)) {
throw new \InvalidArgumentException(sprintf('The parcelsNumbers property can only contain items of string, "%s" given', is_object($item) ? get_class($item) : gettype($item)), __LINE__);
}
$this->parcelsNumbers[] = $item;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\GenerateBordereauParcelNumberList
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,71 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for generateLabel StructType
* Meta informations extracted from the WSDL
* - type: tns:generateLabel
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class GenerateLabel extends AbstractStructBase
{
/**
* The generateLabelRequest
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var \ColissimoPostage\StructType\GenerateLabelRequest
*/
public $generateLabelRequest;
/**
* Constructor method for generateLabel
* @uses GenerateLabel::setGenerateLabelRequest()
* @param \ColissimoPostage\StructType\GenerateLabelRequest $generateLabelRequest
*/
public function __construct(\ColissimoPostage\StructType\GenerateLabelRequest $generateLabelRequest = null)
{
$this
->setGenerateLabelRequest($generateLabelRequest);
}
/**
* Get generateLabelRequest value
* @return \ColissimoPostage\StructType\GenerateLabelRequest|null
*/
public function getGenerateLabelRequest()
{
return $this->generateLabelRequest;
}
/**
* Set generateLabelRequest value
* @param \ColissimoPostage\StructType\GenerateLabelRequest $generateLabelRequest
* @return \ColissimoPostage\StructType\GenerateLabel
*/
public function setGenerateLabelRequest(\ColissimoPostage\StructType\GenerateLabelRequest $generateLabelRequest = null)
{
$this->generateLabelRequest = $generateLabelRequest;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\GenerateLabel
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,181 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for generateLabelRequest StructType
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class GenerateLabelRequest extends AbstractStructBase
{
/**
* The contractNumber
* @var string
*/
public $contractNumber;
/**
* The password
* @var string
*/
public $password;
/**
* The outputFormat
* @var \ColissimoPostage\StructType\OutputFormat
*/
public $outputFormat;
/**
* The letter
* @var \ColissimoPostage\StructType\Letter
*/
public $letter;
/**
* The fields
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var \ColissimoPostage\StructType\Fields
*/
public $fields;
/**
* Constructor method for generateLabelRequest
* @uses GenerateLabelRequest::setContractNumber()
* @uses GenerateLabelRequest::setPassword()
* @uses GenerateLabelRequest::setOutputFormat()
* @uses GenerateLabelRequest::setLetter()
* @uses GenerateLabelRequest::setFields()
* @param string $contractNumber
* @param string $password
* @param \ColissimoPostage\StructType\OutputFormat $outputFormat
* @param \ColissimoPostage\StructType\Letter $letter
* @param \ColissimoPostage\StructType\Fields $fields
*/
public function __construct($contractNumber = null, $password = null, \ColissimoPostage\StructType\OutputFormat $outputFormat = null, \ColissimoPostage\StructType\Letter $letter = null, \ColissimoPostage\StructType\Fields $fields = null)
{
$this
->setContractNumber($contractNumber)
->setPassword($password)
->setOutputFormat($outputFormat)
->setLetter($letter)
->setFields($fields);
}
/**
* Get contractNumber value
* @return string|null
*/
public function getContractNumber()
{
return $this->contractNumber;
}
/**
* Set contractNumber value
* @param string $contractNumber
* @return \ColissimoPostage\StructType\GenerateLabelRequest
*/
public function setContractNumber($contractNumber = null)
{
// validation for constraint: string
if (!is_null($contractNumber) && !is_string($contractNumber)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($contractNumber)), __LINE__);
}
$this->contractNumber = $contractNumber;
return $this;
}
/**
* Get password value
* @return string|null
*/
public function getPassword()
{
return $this->password;
}
/**
* Set password value
* @param string $password
* @return \ColissimoPostage\StructType\GenerateLabelRequest
*/
public function setPassword($password = null)
{
// validation for constraint: string
if (!is_null($password) && !is_string($password)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($password)), __LINE__);
}
$this->password = $password;
return $this;
}
/**
* Get outputFormat value
* @return \ColissimoPostage\StructType\OutputFormat|null
*/
public function getOutputFormat()
{
return $this->outputFormat;
}
/**
* Set outputFormat value
* @param \ColissimoPostage\StructType\OutputFormat $outputFormat
* @return \ColissimoPostage\StructType\GenerateLabelRequest
*/
public function setOutputFormat(\ColissimoPostage\StructType\OutputFormat $outputFormat = null)
{
$this->outputFormat = $outputFormat;
return $this;
}
/**
* Get letter value
* @return \ColissimoPostage\StructType\Letter|null
*/
public function getLetter()
{
return $this->letter;
}
/**
* Set letter value
* @param \ColissimoPostage\StructType\Letter $letter
* @return \ColissimoPostage\StructType\GenerateLabelRequest
*/
public function setLetter(\ColissimoPostage\StructType\Letter $letter = null)
{
$this->letter = $letter;
return $this;
}
/**
* Get fields value
* @return \ColissimoPostage\StructType\Fields|null
*/
public function getFields()
{
return $this->fields;
}
/**
* Set fields value
* @param \ColissimoPostage\StructType\Fields $fields
* @return \ColissimoPostage\StructType\GenerateLabelRequest
*/
public function setFields(\ColissimoPostage\StructType\Fields $fields = null)
{
$this->fields = $fields;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\GenerateLabelRequest
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,181 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for GenerateLabelRequestType StructType
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class GenerateLabelRequestType extends AbstractStructBase
{
/**
* The contractNumber
* @var string
*/
public $contractNumber;
/**
* The password
* @var string
*/
public $password;
/**
* The outputFormat
* @var \ColissimoPostage\StructType\OutputFormat
*/
public $outputFormat;
/**
* The letter
* @var \ColissimoPostage\StructType\Letter
*/
public $letter;
/**
* The fields
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var \ColissimoPostage\StructType\Fields
*/
public $fields;
/**
* Constructor method for GenerateLabelRequestType
* @uses GenerateLabelRequestType::setContractNumber()
* @uses GenerateLabelRequestType::setPassword()
* @uses GenerateLabelRequestType::setOutputFormat()
* @uses GenerateLabelRequestType::setLetter()
* @uses GenerateLabelRequestType::setFields()
* @param string $contractNumber
* @param string $password
* @param \ColissimoPostage\StructType\OutputFormat $outputFormat
* @param \ColissimoPostage\StructType\Letter $letter
* @param \ColissimoPostage\StructType\Fields $fields
*/
public function __construct($contractNumber = null, $password = null, \ColissimoPostage\StructType\OutputFormat $outputFormat = null, \ColissimoPostage\StructType\Letter $letter = null, \ColissimoPostage\StructType\Fields $fields = null)
{
$this
->setContractNumber($contractNumber)
->setPassword($password)
->setOutputFormat($outputFormat)
->setLetter($letter)
->setFields($fields);
}
/**
* Get contractNumber value
* @return string|null
*/
public function getContractNumber()
{
return $this->contractNumber;
}
/**
* Set contractNumber value
* @param string $contractNumber
* @return \ColissimoPostage\StructType\GenerateLabelRequestType
*/
public function setContractNumber($contractNumber = null)
{
// validation for constraint: string
if (!is_null($contractNumber) && !is_string($contractNumber)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($contractNumber)), __LINE__);
}
$this->contractNumber = $contractNumber;
return $this;
}
/**
* Get password value
* @return string|null
*/
public function getPassword()
{
return $this->password;
}
/**
* Set password value
* @param string $password
* @return \ColissimoPostage\StructType\GenerateLabelRequestType
*/
public function setPassword($password = null)
{
// validation for constraint: string
if (!is_null($password) && !is_string($password)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($password)), __LINE__);
}
$this->password = $password;
return $this;
}
/**
* Get outputFormat value
* @return \ColissimoPostage\StructType\OutputFormat|null
*/
public function getOutputFormat()
{
return $this->outputFormat;
}
/**
* Set outputFormat value
* @param \ColissimoPostage\StructType\OutputFormat $outputFormat
* @return \ColissimoPostage\StructType\GenerateLabelRequestType
*/
public function setOutputFormat(\ColissimoPostage\StructType\OutputFormat $outputFormat = null)
{
$this->outputFormat = $outputFormat;
return $this;
}
/**
* Get letter value
* @return \ColissimoPostage\StructType\Letter|null
*/
public function getLetter()
{
return $this->letter;
}
/**
* Set letter value
* @param \ColissimoPostage\StructType\Letter $letter
* @return \ColissimoPostage\StructType\GenerateLabelRequestType
*/
public function setLetter(\ColissimoPostage\StructType\Letter $letter = null)
{
$this->letter = $letter;
return $this;
}
/**
* Get fields value
* @return \ColissimoPostage\StructType\Fields|null
*/
public function getFields()
{
return $this->fields;
}
/**
* Set fields value
* @param \ColissimoPostage\StructType\Fields $fields
* @return \ColissimoPostage\StructType\GenerateLabelRequestType
*/
public function setFields(\ColissimoPostage\StructType\Fields $fields = null)
{
$this->fields = $fields;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\GenerateLabelRequestType
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,71 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for generateLabelResponse StructType
* Meta informations extracted from the WSDL
* - type: tns:generateLabelResponse
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class GenerateLabelResponse extends AbstractStructBase
{
/**
* The return
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var \ColissimoPostage\StructType\GenerateLabelResponseType
*/
public $return;
/**
* Constructor method for generateLabelResponse
* @uses GenerateLabelResponse::setReturn()
* @param \ColissimoPostage\StructType\GenerateLabelResponseType $return
*/
public function __construct(\ColissimoPostage\StructType\GenerateLabelResponseType $return = null)
{
$this
->setReturn($return);
}
/**
* Get return value
* @return \ColissimoPostage\StructType\GenerateLabelResponseType|null
*/
public function getReturn()
{
return $this->return;
}
/**
* Set return value
* @param \ColissimoPostage\StructType\GenerateLabelResponseType $return
* @return \ColissimoPostage\StructType\GenerateLabelResponse
*/
public function setReturn(\ColissimoPostage\StructType\GenerateLabelResponseType $return = null)
{
$this->return = $return;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\GenerateLabelResponse
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,97 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for GenerateLabelResponseType StructType
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class GenerateLabelResponseType extends BaseResponse
{
/**
* The labelXmlReponse
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var \ColissimoPostage\StructType\XmlResponse
*/
public $labelXmlReponse;
/**
* The labelResponse
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var \ColissimoPostage\StructType\LabelResponse
*/
public $labelResponse;
/**
* Constructor method for GenerateLabelResponseType
* @uses GenerateLabelResponseType::setLabelXmlReponse()
* @uses GenerateLabelResponseType::setLabelResponse()
* @param \ColissimoPostage\StructType\XmlResponse $labelXmlReponse
* @param \ColissimoPostage\StructType\LabelResponse $labelResponse
*/
public function __construct(\ColissimoPostage\StructType\XmlResponse $labelXmlReponse = null, \ColissimoPostage\StructType\LabelResponse $labelResponse = null)
{
$this
->setLabelXmlReponse($labelXmlReponse)
->setLabelResponse($labelResponse);
}
/**
* Get labelXmlReponse value
* @return \ColissimoPostage\StructType\XmlResponse|null
*/
public function getLabelXmlReponse()
{
return $this->labelXmlReponse;
}
/**
* Set labelXmlReponse value
* @param \ColissimoPostage\StructType\XmlResponse $labelXmlReponse
* @return \ColissimoPostage\StructType\GenerateLabelResponseType
*/
public function setLabelXmlReponse(\ColissimoPostage\StructType\XmlResponse $labelXmlReponse = null)
{
$this->labelXmlReponse = $labelXmlReponse;
return $this;
}
/**
* Get labelResponse value
* @return \ColissimoPostage\StructType\LabelResponse|null
*/
public function getLabelResponse()
{
return $this->labelResponse;
}
/**
* Set labelResponse value
* @param \ColissimoPostage\StructType\LabelResponse $labelResponse
* @return \ColissimoPostage\StructType\GenerateLabelResponseType
*/
public function setLabelResponse(\ColissimoPostage\StructType\LabelResponse $labelResponse = null)
{
$this->labelResponse = $labelResponse;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\GenerateLabelResponseType
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,133 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for getBordereauByNumber StructType
* Meta informations extracted from the WSDL
* - type: tns:getBordereauByNumber
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class GetBordereauByNumber extends AbstractStructBase
{
/**
* The contractNumber
* @var string
*/
public $contractNumber;
/**
* The password
* @var string
*/
public $password;
/**
* The bordereauNumber
* @var string
*/
public $bordereauNumber;
/**
* Constructor method for getBordereauByNumber
* @uses GetBordereauByNumber::setContractNumber()
* @uses GetBordereauByNumber::setPassword()
* @uses GetBordereauByNumber::setBordereauNumber()
* @param string $contractNumber
* @param string $password
* @param string $bordereauNumber
*/
public function __construct($contractNumber = null, $password = null, $bordereauNumber = null)
{
$this
->setContractNumber($contractNumber)
->setPassword($password)
->setBordereauNumber($bordereauNumber);
}
/**
* Get contractNumber value
* @return string|null
*/
public function getContractNumber()
{
return $this->contractNumber;
}
/**
* Set contractNumber value
* @param string $contractNumber
* @return \ColissimoPostage\StructType\GetBordereauByNumber
*/
public function setContractNumber($contractNumber = null)
{
// validation for constraint: string
if (!is_null($contractNumber) && !is_string($contractNumber)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($contractNumber)), __LINE__);
}
$this->contractNumber = $contractNumber;
return $this;
}
/**
* Get password value
* @return string|null
*/
public function getPassword()
{
return $this->password;
}
/**
* Set password value
* @param string $password
* @return \ColissimoPostage\StructType\GetBordereauByNumber
*/
public function setPassword($password = null)
{
// validation for constraint: string
if (!is_null($password) && !is_string($password)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($password)), __LINE__);
}
$this->password = $password;
return $this;
}
/**
* Get bordereauNumber value
* @return string|null
*/
public function getBordereauNumber()
{
return $this->bordereauNumber;
}
/**
* Set bordereauNumber value
* @param string $bordereauNumber
* @return \ColissimoPostage\StructType\GetBordereauByNumber
*/
public function setBordereauNumber($bordereauNumber = null)
{
// validation for constraint: string
if (!is_null($bordereauNumber) && !is_string($bordereauNumber)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($bordereauNumber)), __LINE__);
}
$this->bordereauNumber = $bordereauNumber;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\GetBordereauByNumber
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,71 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for getBordereauByNumberResponse StructType
* Meta informations extracted from the WSDL
* - type: tns:getBordereauByNumberResponse
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class GetBordereauByNumberResponse extends AbstractStructBase
{
/**
* The return
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var \ColissimoPostage\StructType\BordereauResponse
*/
public $return;
/**
* Constructor method for getBordereauByNumberResponse
* @uses GetBordereauByNumberResponse::setReturn()
* @param \ColissimoPostage\StructType\BordereauResponse $return
*/
public function __construct(\ColissimoPostage\StructType\BordereauResponse $return = null)
{
$this
->setReturn($return);
}
/**
* Get return value
* @return \ColissimoPostage\StructType\BordereauResponse|null
*/
public function getReturn()
{
return $this->return;
}
/**
* Set return value
* @param \ColissimoPostage\StructType\BordereauResponse $return
* @return \ColissimoPostage\StructType\GetBordereauByNumberResponse
*/
public function setReturn(\ColissimoPostage\StructType\BordereauResponse $return = null)
{
$this->return = $return;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\GetBordereauByNumberResponse
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,71 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for getListMailBoxPickingDates StructType
* Meta informations extracted from the WSDL
* - type: tns:getListMailBoxPickingDates
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class GetListMailBoxPickingDates extends AbstractStructBase
{
/**
* The getListMailBoxPickingDatesRetourRequest
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var \ColissimoPostage\StructType\GetListMailBoxPickingDatesRetourRequest
*/
public $getListMailBoxPickingDatesRetourRequest;
/**
* Constructor method for getListMailBoxPickingDates
* @uses GetListMailBoxPickingDates::setGetListMailBoxPickingDatesRetourRequest()
* @param \ColissimoPostage\StructType\GetListMailBoxPickingDatesRetourRequest $getListMailBoxPickingDatesRetourRequest
*/
public function __construct(\ColissimoPostage\StructType\GetListMailBoxPickingDatesRetourRequest $getListMailBoxPickingDatesRetourRequest = null)
{
$this
->setGetListMailBoxPickingDatesRetourRequest($getListMailBoxPickingDatesRetourRequest);
}
/**
* Get getListMailBoxPickingDatesRetourRequest value
* @return \ColissimoPostage\StructType\GetListMailBoxPickingDatesRetourRequest|null
*/
public function getGetListMailBoxPickingDatesRetourRequest()
{
return $this->getListMailBoxPickingDatesRetourRequest;
}
/**
* Set getListMailBoxPickingDatesRetourRequest value
* @param \ColissimoPostage\StructType\GetListMailBoxPickingDatesRetourRequest $getListMailBoxPickingDatesRetourRequest
* @return \ColissimoPostage\StructType\GetListMailBoxPickingDates
*/
public function setGetListMailBoxPickingDatesRetourRequest(\ColissimoPostage\StructType\GetListMailBoxPickingDatesRetourRequest $getListMailBoxPickingDatesRetourRequest = null)
{
$this->getListMailBoxPickingDatesRetourRequest = $getListMailBoxPickingDatesRetourRequest;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\GetListMailBoxPickingDates
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,71 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for getListMailBoxPickingDatesResponse StructType
* Meta informations extracted from the WSDL
* - type: tns:getListMailBoxPickingDatesResponse
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class GetListMailBoxPickingDatesResponse extends AbstractStructBase
{
/**
* The return
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var \ColissimoPostage\StructType\GetListMailBoxPickingDatesResponseType
*/
public $return;
/**
* Constructor method for getListMailBoxPickingDatesResponse
* @uses GetListMailBoxPickingDatesResponse::setReturn()
* @param \ColissimoPostage\StructType\GetListMailBoxPickingDatesResponseType $return
*/
public function __construct(\ColissimoPostage\StructType\GetListMailBoxPickingDatesResponseType $return = null)
{
$this
->setReturn($return);
}
/**
* Get return value
* @return \ColissimoPostage\StructType\GetListMailBoxPickingDatesResponseType|null
*/
public function getReturn()
{
return $this->return;
}
/**
* Set return value
* @param \ColissimoPostage\StructType\GetListMailBoxPickingDatesResponseType $return
* @return \ColissimoPostage\StructType\GetListMailBoxPickingDatesResponse
*/
public function setReturn(\ColissimoPostage\StructType\GetListMailBoxPickingDatesResponseType $return = null)
{
$this->return = $return;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\GetListMailBoxPickingDatesResponse
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,166 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for GetListMailBoxPickingDatesResponseType StructType
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class GetListMailBoxPickingDatesResponseType extends BaseResponse
{
/**
* The mailBoxPickingDateMaxHour
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $mailBoxPickingDateMaxHour;
/**
* The mailBoxPickingDates
* Meta informations extracted from the WSDL
* - maxOccurs: unbounded
* - minOccurs: 0
* - nillable: true
* @var string[]
*/
public $mailBoxPickingDates;
/**
* The validityTime
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $validityTime;
/**
* Constructor method for GetListMailBoxPickingDatesResponseType
* @uses GetListMailBoxPickingDatesResponseType::setMailBoxPickingDateMaxHour()
* @uses GetListMailBoxPickingDatesResponseType::setMailBoxPickingDates()
* @uses GetListMailBoxPickingDatesResponseType::setValidityTime()
* @param string $mailBoxPickingDateMaxHour
* @param string[] $mailBoxPickingDates
* @param string $validityTime
*/
public function __construct($mailBoxPickingDateMaxHour = null, array $mailBoxPickingDates = array(), $validityTime = null)
{
$this
->setMailBoxPickingDateMaxHour($mailBoxPickingDateMaxHour)
->setMailBoxPickingDates($mailBoxPickingDates)
->setValidityTime($validityTime);
}
/**
* Get mailBoxPickingDateMaxHour value
* @return string|null
*/
public function getMailBoxPickingDateMaxHour()
{
return $this->mailBoxPickingDateMaxHour;
}
/**
* Set mailBoxPickingDateMaxHour value
* @param string $mailBoxPickingDateMaxHour
* @return \ColissimoPostage\StructType\GetListMailBoxPickingDatesResponseType
*/
public function setMailBoxPickingDateMaxHour($mailBoxPickingDateMaxHour = null)
{
// validation for constraint: string
if (!is_null($mailBoxPickingDateMaxHour) && !is_string($mailBoxPickingDateMaxHour)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($mailBoxPickingDateMaxHour)), __LINE__);
}
$this->mailBoxPickingDateMaxHour = $mailBoxPickingDateMaxHour;
return $this;
}
/**
* Get mailBoxPickingDates value
* An additional test has been added (isset) before returning the property value as
* this property may have been unset before, due to the fact that this property is
* removable from the request (nillable=true+minOccurs=0)
* @return string[]|null
*/
public function getMailBoxPickingDates()
{
return isset($this->mailBoxPickingDates) ? $this->mailBoxPickingDates : null;
}
/**
* Set mailBoxPickingDates value
* This property is removable from request (nillable=true+minOccurs=0), therefore
* if the value assigned to this property is null, it is removed from this object
* @throws \InvalidArgumentException
* @param string[] $mailBoxPickingDates
* @return \ColissimoPostage\StructType\GetListMailBoxPickingDatesResponseType
*/
public function setMailBoxPickingDates(array $mailBoxPickingDates = array())
{
foreach ($mailBoxPickingDates as $getListMailBoxPickingDatesResponseTypeMailBoxPickingDatesItem) {
// validation for constraint: itemType
if (!is_string($getListMailBoxPickingDatesResponseTypeMailBoxPickingDatesItem)) {
throw new \InvalidArgumentException(sprintf('The mailBoxPickingDates property can only contain items of dateTime, "%s" given', is_object($getListMailBoxPickingDatesResponseTypeMailBoxPickingDatesItem) ? get_class($getListMailBoxPickingDatesResponseTypeMailBoxPickingDatesItem) : gettype($getListMailBoxPickingDatesResponseTypeMailBoxPickingDatesItem)), __LINE__);
}
}
if (is_null($mailBoxPickingDates) || (is_array($mailBoxPickingDates) && empty($mailBoxPickingDates))) {
unset($this->mailBoxPickingDates);
} else {
$this->mailBoxPickingDates = $mailBoxPickingDates;
}
return $this;
}
/**
* Add item to mailBoxPickingDates value
* @throws \InvalidArgumentException
* @param string $item
* @return \ColissimoPostage\StructType\GetListMailBoxPickingDatesResponseType
*/
public function addToMailBoxPickingDates($item)
{
// validation for constraint: itemType
if (!is_string($item)) {
throw new \InvalidArgumentException(sprintf('The mailBoxPickingDates property can only contain items of dateTime, "%s" given', is_object($item) ? get_class($item) : gettype($item)), __LINE__);
}
$this->mailBoxPickingDates[] = $item;
return $this;
}
/**
* Get validityTime value
* @return string|null
*/
public function getValidityTime()
{
return $this->validityTime;
}
/**
* Set validityTime value
* @param string $validityTime
* @return \ColissimoPostage\StructType\GetListMailBoxPickingDatesResponseType
*/
public function setValidityTime($validityTime = null)
{
// validation for constraint: string
if (!is_null($validityTime) && !is_string($validityTime)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($validityTime)), __LINE__);
}
$this->validityTime = $validityTime;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\GetListMailBoxPickingDatesResponseType
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,127 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for getListMailBoxPickingDatesRetourRequest StructType
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class GetListMailBoxPickingDatesRetourRequest extends AbstractStructBase
{
/**
* The contractNumber
* @var string
*/
public $contractNumber;
/**
* The password
* @var string
*/
public $password;
/**
* The sender
* @var \ColissimoPostage\StructType\Sender
*/
public $sender;
/**
* Constructor method for getListMailBoxPickingDatesRetourRequest
* @uses GetListMailBoxPickingDatesRetourRequest::setContractNumber()
* @uses GetListMailBoxPickingDatesRetourRequest::setPassword()
* @uses GetListMailBoxPickingDatesRetourRequest::setSender()
* @param string $contractNumber
* @param string $password
* @param \ColissimoPostage\StructType\Sender $sender
*/
public function __construct($contractNumber = null, $password = null, \ColissimoPostage\StructType\Sender $sender = null)
{
$this
->setContractNumber($contractNumber)
->setPassword($password)
->setSender($sender);
}
/**
* Get contractNumber value
* @return string|null
*/
public function getContractNumber()
{
return $this->contractNumber;
}
/**
* Set contractNumber value
* @param string $contractNumber
* @return \ColissimoPostage\StructType\GetListMailBoxPickingDatesRetourRequest
*/
public function setContractNumber($contractNumber = null)
{
// validation for constraint: string
if (!is_null($contractNumber) && !is_string($contractNumber)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($contractNumber)), __LINE__);
}
$this->contractNumber = $contractNumber;
return $this;
}
/**
* Get password value
* @return string|null
*/
public function getPassword()
{
return $this->password;
}
/**
* Set password value
* @param string $password
* @return \ColissimoPostage\StructType\GetListMailBoxPickingDatesRetourRequest
*/
public function setPassword($password = null)
{
// validation for constraint: string
if (!is_null($password) && !is_string($password)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($password)), __LINE__);
}
$this->password = $password;
return $this;
}
/**
* Get sender value
* @return \ColissimoPostage\StructType\Sender|null
*/
public function getSender()
{
return $this->sender;
}
/**
* Set sender value
* @param \ColissimoPostage\StructType\Sender $sender
* @return \ColissimoPostage\StructType\GetListMailBoxPickingDatesRetourRequest
*/
public function setSender(\ColissimoPostage\StructType\Sender $sender = null)
{
$this->sender = $sender;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\GetListMailBoxPickingDatesRetourRequest
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,127 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for GetListMailBoxPickingDatesRetourRequestType StructType
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class GetListMailBoxPickingDatesRetourRequestType extends AbstractStructBase
{
/**
* The contractNumber
* @var string
*/
public $contractNumber;
/**
* The password
* @var string
*/
public $password;
/**
* The sender
* @var \ColissimoPostage\StructType\Sender
*/
public $sender;
/**
* Constructor method for GetListMailBoxPickingDatesRetourRequestType
* @uses GetListMailBoxPickingDatesRetourRequestType::setContractNumber()
* @uses GetListMailBoxPickingDatesRetourRequestType::setPassword()
* @uses GetListMailBoxPickingDatesRetourRequestType::setSender()
* @param string $contractNumber
* @param string $password
* @param \ColissimoPostage\StructType\Sender $sender
*/
public function __construct($contractNumber = null, $password = null, \ColissimoPostage\StructType\Sender $sender = null)
{
$this
->setContractNumber($contractNumber)
->setPassword($password)
->setSender($sender);
}
/**
* Get contractNumber value
* @return string|null
*/
public function getContractNumber()
{
return $this->contractNumber;
}
/**
* Set contractNumber value
* @param string $contractNumber
* @return \ColissimoPostage\StructType\GetListMailBoxPickingDatesRetourRequestType
*/
public function setContractNumber($contractNumber = null)
{
// validation for constraint: string
if (!is_null($contractNumber) && !is_string($contractNumber)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($contractNumber)), __LINE__);
}
$this->contractNumber = $contractNumber;
return $this;
}
/**
* Get password value
* @return string|null
*/
public function getPassword()
{
return $this->password;
}
/**
* Set password value
* @param string $password
* @return \ColissimoPostage\StructType\GetListMailBoxPickingDatesRetourRequestType
*/
public function setPassword($password = null)
{
// validation for constraint: string
if (!is_null($password) && !is_string($password)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($password)), __LINE__);
}
$this->password = $password;
return $this;
}
/**
* Get sender value
* @return \ColissimoPostage\StructType\Sender|null
*/
public function getSender()
{
return $this->sender;
}
/**
* Set sender value
* @param \ColissimoPostage\StructType\Sender $sender
* @return \ColissimoPostage\StructType\GetListMailBoxPickingDatesRetourRequestType
*/
public function setSender(\ColissimoPostage\StructType\Sender $sender = null)
{
$this->sender = $sender;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\GetListMailBoxPickingDatesRetourRequestType
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,71 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for getProductInter StructType
* Meta informations extracted from the WSDL
* - type: tns:getProductInter
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class GetProductInter extends AbstractStructBase
{
/**
* The getProductInterRequest
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var \ColissimoPostage\StructType\GetProductInterRequest
*/
public $getProductInterRequest;
/**
* Constructor method for getProductInter
* @uses GetProductInter::setGetProductInterRequest()
* @param \ColissimoPostage\StructType\GetProductInterRequest $getProductInterRequest
*/
public function __construct(\ColissimoPostage\StructType\GetProductInterRequest $getProductInterRequest = null)
{
$this
->setGetProductInterRequest($getProductInterRequest);
}
/**
* Get getProductInterRequest value
* @return \ColissimoPostage\StructType\GetProductInterRequest|null
*/
public function getGetProductInterRequest()
{
return $this->getProductInterRequest;
}
/**
* Set getProductInterRequest value
* @param \ColissimoPostage\StructType\GetProductInterRequest $getProductInterRequest
* @return \ColissimoPostage\StructType\GetProductInter
*/
public function setGetProductInterRequest(\ColissimoPostage\StructType\GetProductInterRequest $getProductInterRequest = null)
{
$this->getProductInterRequest = $getProductInterRequest;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\GetProductInter
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,323 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for getProductInterRequest StructType
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class GetProductInterRequest extends AbstractStructBase
{
/**
* The contractNumber
* @var string
*/
public $contractNumber;
/**
* The password
* @var string
*/
public $password;
/**
* The productCode
* @var string
*/
public $productCode;
/**
* The insurance
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var bool
*/
public $insurance;
/**
* The nonMachinable
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var bool
*/
public $nonMachinable;
/**
* The returnReceipt
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var bool
*/
public $returnReceipt;
/**
* The countryCode
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $countryCode;
/**
* The zipCode
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $zipCode;
/**
* The city
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $city;
/**
* Constructor method for getProductInterRequest
* @uses GetProductInterRequest::setContractNumber()
* @uses GetProductInterRequest::setPassword()
* @uses GetProductInterRequest::setProductCode()
* @uses GetProductInterRequest::setInsurance()
* @uses GetProductInterRequest::setNonMachinable()
* @uses GetProductInterRequest::setReturnReceipt()
* @uses GetProductInterRequest::setCountryCode()
* @uses GetProductInterRequest::setZipCode()
* @uses GetProductInterRequest::setCity()
* @param string $contractNumber
* @param string $password
* @param string $productCode
* @param bool $insurance
* @param bool $nonMachinable
* @param bool $returnReceipt
* @param string $countryCode
* @param string $zipCode
* @param string $city
*/
public function __construct($contractNumber = null, $password = null, $productCode = null, $insurance = null, $nonMachinable = null, $returnReceipt = null, $countryCode = null, $zipCode = null, $city = null)
{
$this
->setContractNumber($contractNumber)
->setPassword($password)
->setProductCode($productCode)
->setInsurance($insurance)
->setNonMachinable($nonMachinable)
->setReturnReceipt($returnReceipt)
->setCountryCode($countryCode)
->setZipCode($zipCode)
->setCity($city);
}
/**
* Get contractNumber value
* @return string|null
*/
public function getContractNumber()
{
return $this->contractNumber;
}
/**
* Set contractNumber value
* @param string $contractNumber
* @return \ColissimoPostage\StructType\GetProductInterRequest
*/
public function setContractNumber($contractNumber = null)
{
// validation for constraint: string
if (!is_null($contractNumber) && !is_string($contractNumber)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($contractNumber)), __LINE__);
}
$this->contractNumber = $contractNumber;
return $this;
}
/**
* Get password value
* @return string|null
*/
public function getPassword()
{
return $this->password;
}
/**
* Set password value
* @param string $password
* @return \ColissimoPostage\StructType\GetProductInterRequest
*/
public function setPassword($password = null)
{
// validation for constraint: string
if (!is_null($password) && !is_string($password)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($password)), __LINE__);
}
$this->password = $password;
return $this;
}
/**
* Get productCode value
* @return string|null
*/
public function getProductCode()
{
return $this->productCode;
}
/**
* Set productCode value
* @param string $productCode
* @return \ColissimoPostage\StructType\GetProductInterRequest
*/
public function setProductCode($productCode = null)
{
// validation for constraint: string
if (!is_null($productCode) && !is_string($productCode)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($productCode)), __LINE__);
}
$this->productCode = $productCode;
return $this;
}
/**
* Get insurance value
* @return bool|null
*/
public function getInsurance()
{
return $this->insurance;
}
/**
* Set insurance value
* @param bool $insurance
* @return \ColissimoPostage\StructType\GetProductInterRequest
*/
public function setInsurance($insurance = null)
{
// validation for constraint: boolean
if (!is_null($insurance) && !is_bool($insurance)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a bool, "%s" given', gettype($insurance)), __LINE__);
}
$this->insurance = $insurance;
return $this;
}
/**
* Get nonMachinable value
* @return bool|null
*/
public function getNonMachinable()
{
return $this->nonMachinable;
}
/**
* Set nonMachinable value
* @param bool $nonMachinable
* @return \ColissimoPostage\StructType\GetProductInterRequest
*/
public function setNonMachinable($nonMachinable = null)
{
// validation for constraint: boolean
if (!is_null($nonMachinable) && !is_bool($nonMachinable)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a bool, "%s" given', gettype($nonMachinable)), __LINE__);
}
$this->nonMachinable = $nonMachinable;
return $this;
}
/**
* Get returnReceipt value
* @return bool|null
*/
public function getReturnReceipt()
{
return $this->returnReceipt;
}
/**
* Set returnReceipt value
* @param bool $returnReceipt
* @return \ColissimoPostage\StructType\GetProductInterRequest
*/
public function setReturnReceipt($returnReceipt = null)
{
// validation for constraint: boolean
if (!is_null($returnReceipt) && !is_bool($returnReceipt)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a bool, "%s" given', gettype($returnReceipt)), __LINE__);
}
$this->returnReceipt = $returnReceipt;
return $this;
}
/**
* Get countryCode value
* @return string|null
*/
public function getCountryCode()
{
return $this->countryCode;
}
/**
* Set countryCode value
* @param string $countryCode
* @return \ColissimoPostage\StructType\GetProductInterRequest
*/
public function setCountryCode($countryCode = null)
{
// validation for constraint: string
if (!is_null($countryCode) && !is_string($countryCode)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($countryCode)), __LINE__);
}
$this->countryCode = $countryCode;
return $this;
}
/**
* Get zipCode value
* @return string|null
*/
public function getZipCode()
{
return $this->zipCode;
}
/**
* Set zipCode value
* @param string $zipCode
* @return \ColissimoPostage\StructType\GetProductInterRequest
*/
public function setZipCode($zipCode = null)
{
// validation for constraint: string
if (!is_null($zipCode) && !is_string($zipCode)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($zipCode)), __LINE__);
}
$this->zipCode = $zipCode;
return $this;
}
/**
* Get city value
* @return string|null
*/
public function getCity()
{
return $this->city;
}
/**
* Set city value
* @param string $city
* @return \ColissimoPostage\StructType\GetProductInterRequest
*/
public function setCity($city = null)
{
// validation for constraint: string
if (!is_null($city) && !is_string($city)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($city)), __LINE__);
}
$this->city = $city;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\GetProductInterRequest
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,323 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for GetProductInterRequestType StructType
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class GetProductInterRequestType extends AbstractStructBase
{
/**
* The contractNumber
* @var string
*/
public $contractNumber;
/**
* The password
* @var string
*/
public $password;
/**
* The productCode
* @var string
*/
public $productCode;
/**
* The insurance
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var bool
*/
public $insurance;
/**
* The nonMachinable
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var bool
*/
public $nonMachinable;
/**
* The returnReceipt
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var bool
*/
public $returnReceipt;
/**
* The countryCode
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $countryCode;
/**
* The zipCode
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $zipCode;
/**
* The city
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $city;
/**
* Constructor method for GetProductInterRequestType
* @uses GetProductInterRequestType::setContractNumber()
* @uses GetProductInterRequestType::setPassword()
* @uses GetProductInterRequestType::setProductCode()
* @uses GetProductInterRequestType::setInsurance()
* @uses GetProductInterRequestType::setNonMachinable()
* @uses GetProductInterRequestType::setReturnReceipt()
* @uses GetProductInterRequestType::setCountryCode()
* @uses GetProductInterRequestType::setZipCode()
* @uses GetProductInterRequestType::setCity()
* @param string $contractNumber
* @param string $password
* @param string $productCode
* @param bool $insurance
* @param bool $nonMachinable
* @param bool $returnReceipt
* @param string $countryCode
* @param string $zipCode
* @param string $city
*/
public function __construct($contractNumber = null, $password = null, $productCode = null, $insurance = null, $nonMachinable = null, $returnReceipt = null, $countryCode = null, $zipCode = null, $city = null)
{
$this
->setContractNumber($contractNumber)
->setPassword($password)
->setProductCode($productCode)
->setInsurance($insurance)
->setNonMachinable($nonMachinable)
->setReturnReceipt($returnReceipt)
->setCountryCode($countryCode)
->setZipCode($zipCode)
->setCity($city);
}
/**
* Get contractNumber value
* @return string|null
*/
public function getContractNumber()
{
return $this->contractNumber;
}
/**
* Set contractNumber value
* @param string $contractNumber
* @return \ColissimoPostage\StructType\GetProductInterRequestType
*/
public function setContractNumber($contractNumber = null)
{
// validation for constraint: string
if (!is_null($contractNumber) && !is_string($contractNumber)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($contractNumber)), __LINE__);
}
$this->contractNumber = $contractNumber;
return $this;
}
/**
* Get password value
* @return string|null
*/
public function getPassword()
{
return $this->password;
}
/**
* Set password value
* @param string $password
* @return \ColissimoPostage\StructType\GetProductInterRequestType
*/
public function setPassword($password = null)
{
// validation for constraint: string
if (!is_null($password) && !is_string($password)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($password)), __LINE__);
}
$this->password = $password;
return $this;
}
/**
* Get productCode value
* @return string|null
*/
public function getProductCode()
{
return $this->productCode;
}
/**
* Set productCode value
* @param string $productCode
* @return \ColissimoPostage\StructType\GetProductInterRequestType
*/
public function setProductCode($productCode = null)
{
// validation for constraint: string
if (!is_null($productCode) && !is_string($productCode)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($productCode)), __LINE__);
}
$this->productCode = $productCode;
return $this;
}
/**
* Get insurance value
* @return bool|null
*/
public function getInsurance()
{
return $this->insurance;
}
/**
* Set insurance value
* @param bool $insurance
* @return \ColissimoPostage\StructType\GetProductInterRequestType
*/
public function setInsurance($insurance = null)
{
// validation for constraint: boolean
if (!is_null($insurance) && !is_bool($insurance)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a bool, "%s" given', gettype($insurance)), __LINE__);
}
$this->insurance = $insurance;
return $this;
}
/**
* Get nonMachinable value
* @return bool|null
*/
public function getNonMachinable()
{
return $this->nonMachinable;
}
/**
* Set nonMachinable value
* @param bool $nonMachinable
* @return \ColissimoPostage\StructType\GetProductInterRequestType
*/
public function setNonMachinable($nonMachinable = null)
{
// validation for constraint: boolean
if (!is_null($nonMachinable) && !is_bool($nonMachinable)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a bool, "%s" given', gettype($nonMachinable)), __LINE__);
}
$this->nonMachinable = $nonMachinable;
return $this;
}
/**
* Get returnReceipt value
* @return bool|null
*/
public function getReturnReceipt()
{
return $this->returnReceipt;
}
/**
* Set returnReceipt value
* @param bool $returnReceipt
* @return \ColissimoPostage\StructType\GetProductInterRequestType
*/
public function setReturnReceipt($returnReceipt = null)
{
// validation for constraint: boolean
if (!is_null($returnReceipt) && !is_bool($returnReceipt)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a bool, "%s" given', gettype($returnReceipt)), __LINE__);
}
$this->returnReceipt = $returnReceipt;
return $this;
}
/**
* Get countryCode value
* @return string|null
*/
public function getCountryCode()
{
return $this->countryCode;
}
/**
* Set countryCode value
* @param string $countryCode
* @return \ColissimoPostage\StructType\GetProductInterRequestType
*/
public function setCountryCode($countryCode = null)
{
// validation for constraint: string
if (!is_null($countryCode) && !is_string($countryCode)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($countryCode)), __LINE__);
}
$this->countryCode = $countryCode;
return $this;
}
/**
* Get zipCode value
* @return string|null
*/
public function getZipCode()
{
return $this->zipCode;
}
/**
* Set zipCode value
* @param string $zipCode
* @return \ColissimoPostage\StructType\GetProductInterRequestType
*/
public function setZipCode($zipCode = null)
{
// validation for constraint: string
if (!is_null($zipCode) && !is_string($zipCode)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($zipCode)), __LINE__);
}
$this->zipCode = $zipCode;
return $this;
}
/**
* Get city value
* @return string|null
*/
public function getCity()
{
return $this->city;
}
/**
* Set city value
* @param string $city
* @return \ColissimoPostage\StructType\GetProductInterRequestType
*/
public function setCity($city = null)
{
// validation for constraint: string
if (!is_null($city) && !is_string($city)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($city)), __LINE__);
}
$this->city = $city;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\GetProductInterRequestType
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,71 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for getProductInterResponse StructType
* Meta informations extracted from the WSDL
* - type: tns:getProductInterResponse
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class GetProductInterResponse extends AbstractStructBase
{
/**
* The return
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var \ColissimoPostage\StructType\GetProductInterResponseType
*/
public $return;
/**
* Constructor method for getProductInterResponse
* @uses GetProductInterResponse::setReturn()
* @param \ColissimoPostage\StructType\GetProductInterResponseType $return
*/
public function __construct(\ColissimoPostage\StructType\GetProductInterResponseType $return = null)
{
$this
->setReturn($return);
}
/**
* Get return value
* @return \ColissimoPostage\StructType\GetProductInterResponseType|null
*/
public function getReturn()
{
return $this->return;
}
/**
* Set return value
* @param \ColissimoPostage\StructType\GetProductInterResponseType $return
* @return \ColissimoPostage\StructType\GetProductInterResponse
*/
public function setReturn(\ColissimoPostage\StructType\GetProductInterResponseType $return = null)
{
$this->return = $return;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\GetProductInterResponse
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,195 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for GetProductInterResponseType StructType
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class GetProductInterResponseType extends BaseResponse
{
/**
* The product
* Meta informations extracted from the WSDL
* - maxOccurs: unbounded
* - minOccurs: 0
* - nillable: true
* @var string[]
*/
public $product;
/**
* The partnerType
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $partnerType;
/**
* The returnTypeChoice
* Meta informations extracted from the WSDL
* - maxOccurs: unbounded
* - minOccurs: 0
* - nillable: true
* @var string[]
*/
public $returnTypeChoice;
/**
* Constructor method for GetProductInterResponseType
* @uses GetProductInterResponseType::setProduct()
* @uses GetProductInterResponseType::setPartnerType()
* @uses GetProductInterResponseType::setReturnTypeChoice()
* @param string[] $product
* @param string $partnerType
* @param string[] $returnTypeChoice
*/
public function __construct(array $product = array(), $partnerType = null, array $returnTypeChoice = array())
{
$this
->setProduct($product)
->setPartnerType($partnerType)
->setReturnTypeChoice($returnTypeChoice);
}
/**
* Get product value
* An additional test has been added (isset) before returning the property value as
* this property may have been unset before, due to the fact that this property is
* removable from the request (nillable=true+minOccurs=0)
* @return string[]|null
*/
public function getProduct()
{
return isset($this->product) ? $this->product : null;
}
/**
* Set product value
* This property is removable from request (nillable=true+minOccurs=0), therefore
* if the value assigned to this property is null, it is removed from this object
* @throws \InvalidArgumentException
* @param string[] $product
* @return \ColissimoPostage\StructType\GetProductInterResponseType
*/
public function setProduct(array $product = array())
{
foreach ($product as $getProductInterResponseTypeProductItem) {
// validation for constraint: itemType
if (!is_string($getProductInterResponseTypeProductItem)) {
throw new \InvalidArgumentException(sprintf('The product property can only contain items of string, "%s" given', is_object($getProductInterResponseTypeProductItem) ? get_class($getProductInterResponseTypeProductItem) : gettype($getProductInterResponseTypeProductItem)), __LINE__);
}
}
if (is_null($product) || (is_array($product) && empty($product))) {
unset($this->product);
} else {
$this->product = $product;
}
return $this;
}
/**
* Add item to product value
* @throws \InvalidArgumentException
* @param string $item
* @return \ColissimoPostage\StructType\GetProductInterResponseType
*/
public function addToProduct($item)
{
// validation for constraint: itemType
if (!is_string($item)) {
throw new \InvalidArgumentException(sprintf('The product property can only contain items of string, "%s" given', is_object($item) ? get_class($item) : gettype($item)), __LINE__);
}
$this->product[] = $item;
return $this;
}
/**
* Get partnerType value
* @return string|null
*/
public function getPartnerType()
{
return $this->partnerType;
}
/**
* Set partnerType value
* @param string $partnerType
* @return \ColissimoPostage\StructType\GetProductInterResponseType
*/
public function setPartnerType($partnerType = null)
{
// validation for constraint: string
if (!is_null($partnerType) && !is_string($partnerType)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($partnerType)), __LINE__);
}
$this->partnerType = $partnerType;
return $this;
}
/**
* Get returnTypeChoice value
* An additional test has been added (isset) before returning the property value as
* this property may have been unset before, due to the fact that this property is
* removable from the request (nillable=true+minOccurs=0)
* @return string[]|null
*/
public function getReturnTypeChoice()
{
return isset($this->returnTypeChoice) ? $this->returnTypeChoice : null;
}
/**
* Set returnTypeChoice value
* This property is removable from request (nillable=true+minOccurs=0), therefore
* if the value assigned to this property is null, it is removed from this object
* @throws \InvalidArgumentException
* @param string[] $returnTypeChoice
* @return \ColissimoPostage\StructType\GetProductInterResponseType
*/
public function setReturnTypeChoice(array $returnTypeChoice = array())
{
foreach ($returnTypeChoice as $getProductInterResponseTypeReturnTypeChoiceItem) {
// validation for constraint: itemType
if (!is_string($getProductInterResponseTypeReturnTypeChoiceItem)) {
throw new \InvalidArgumentException(sprintf('The returnTypeChoice property can only contain items of string, "%s" given', is_object($getProductInterResponseTypeReturnTypeChoiceItem) ? get_class($getProductInterResponseTypeReturnTypeChoiceItem) : gettype($getProductInterResponseTypeReturnTypeChoiceItem)), __LINE__);
}
}
if (is_null($returnTypeChoice) || (is_array($returnTypeChoice) && empty($returnTypeChoice))) {
unset($this->returnTypeChoice);
} else {
$this->returnTypeChoice = $returnTypeChoice;
}
return $this;
}
/**
* Add item to returnTypeChoice value
* @throws \InvalidArgumentException
* @param string $item
* @return \ColissimoPostage\StructType\GetProductInterResponseType
*/
public function addToReturnTypeChoice($item)
{
// validation for constraint: itemType
if (!is_string($item)) {
throw new \InvalidArgumentException(sprintf('The returnTypeChoice property can only contain items of string, "%s" given', is_object($item) ? get_class($item) : gettype($item)), __LINE__);
}
$this->returnTypeChoice[] = $item;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\GetProductInterResponseType
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,585 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for importerAddress StructType
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class ImporterAddress extends AbstractStructBase
{
/**
* The companyName
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $companyName;
/**
* The lastName
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $lastName;
/**
* The firstName
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $firstName;
/**
* The line0
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $line0;
/**
* The line1
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $line1;
/**
* The line2
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $line2;
/**
* The line3
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $line3;
/**
* The countryCode
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $countryCode;
/**
* The city
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $city;
/**
* The zipCode
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $zipCode;
/**
* The phoneNumber
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $phoneNumber;
/**
* The mobileNumber
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $mobileNumber;
/**
* The doorCode1
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $doorCode1;
/**
* The doorCode2
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $doorCode2;
/**
* The email
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $email;
/**
* The intercom
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $intercom;
/**
* The language
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $language;
/**
* Constructor method for importerAddress
* @uses ImporterAddress::setCompanyName()
* @uses ImporterAddress::setLastName()
* @uses ImporterAddress::setFirstName()
* @uses ImporterAddress::setLine0()
* @uses ImporterAddress::setLine1()
* @uses ImporterAddress::setLine2()
* @uses ImporterAddress::setLine3()
* @uses ImporterAddress::setCountryCode()
* @uses ImporterAddress::setCity()
* @uses ImporterAddress::setZipCode()
* @uses ImporterAddress::setPhoneNumber()
* @uses ImporterAddress::setMobileNumber()
* @uses ImporterAddress::setDoorCode1()
* @uses ImporterAddress::setDoorCode2()
* @uses ImporterAddress::setEmail()
* @uses ImporterAddress::setIntercom()
* @uses ImporterAddress::setLanguage()
* @param string $companyName
* @param string $lastName
* @param string $firstName
* @param string $line0
* @param string $line1
* @param string $line2
* @param string $line3
* @param string $countryCode
* @param string $city
* @param string $zipCode
* @param string $phoneNumber
* @param string $mobileNumber
* @param string $doorCode1
* @param string $doorCode2
* @param string $email
* @param string $intercom
* @param string $language
*/
public function __construct($companyName = null, $lastName = null, $firstName = null, $line0 = null, $line1 = null, $line2 = null, $line3 = null, $countryCode = null, $city = null, $zipCode = null, $phoneNumber = null, $mobileNumber = null, $doorCode1 = null, $doorCode2 = null, $email = null, $intercom = null, $language = null)
{
$this
->setCompanyName($companyName)
->setLastName($lastName)
->setFirstName($firstName)
->setLine0($line0)
->setLine1($line1)
->setLine2($line2)
->setLine3($line3)
->setCountryCode($countryCode)
->setCity($city)
->setZipCode($zipCode)
->setPhoneNumber($phoneNumber)
->setMobileNumber($mobileNumber)
->setDoorCode1($doorCode1)
->setDoorCode2($doorCode2)
->setEmail($email)
->setIntercom($intercom)
->setLanguage($language);
}
/**
* Get companyName value
* @return string|null
*/
public function getCompanyName()
{
return $this->companyName;
}
/**
* Set companyName value
* @param string $companyName
* @return \ColissimoPostage\StructType\ImporterAddress
*/
public function setCompanyName($companyName = null)
{
// validation for constraint: string
if (!is_null($companyName) && !is_string($companyName)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($companyName)), __LINE__);
}
$this->companyName = $companyName;
return $this;
}
/**
* Get lastName value
* @return string|null
*/
public function getLastName()
{
return $this->lastName;
}
/**
* Set lastName value
* @param string $lastName
* @return \ColissimoPostage\StructType\ImporterAddress
*/
public function setLastName($lastName = null)
{
// validation for constraint: string
if (!is_null($lastName) && !is_string($lastName)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($lastName)), __LINE__);
}
$this->lastName = $lastName;
return $this;
}
/**
* Get firstName value
* @return string|null
*/
public function getFirstName()
{
return $this->firstName;
}
/**
* Set firstName value
* @param string $firstName
* @return \ColissimoPostage\StructType\ImporterAddress
*/
public function setFirstName($firstName = null)
{
// validation for constraint: string
if (!is_null($firstName) && !is_string($firstName)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($firstName)), __LINE__);
}
$this->firstName = $firstName;
return $this;
}
/**
* Get line0 value
* @return string|null
*/
public function getLine0()
{
return $this->line0;
}
/**
* Set line0 value
* @param string $line0
* @return \ColissimoPostage\StructType\ImporterAddress
*/
public function setLine0($line0 = null)
{
// validation for constraint: string
if (!is_null($line0) && !is_string($line0)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($line0)), __LINE__);
}
$this->line0 = $line0;
return $this;
}
/**
* Get line1 value
* @return string|null
*/
public function getLine1()
{
return $this->line1;
}
/**
* Set line1 value
* @param string $line1
* @return \ColissimoPostage\StructType\ImporterAddress
*/
public function setLine1($line1 = null)
{
// validation for constraint: string
if (!is_null($line1) && !is_string($line1)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($line1)), __LINE__);
}
$this->line1 = $line1;
return $this;
}
/**
* Get line2 value
* @return string|null
*/
public function getLine2()
{
return $this->line2;
}
/**
* Set line2 value
* @param string $line2
* @return \ColissimoPostage\StructType\ImporterAddress
*/
public function setLine2($line2 = null)
{
// validation for constraint: string
if (!is_null($line2) && !is_string($line2)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($line2)), __LINE__);
}
$this->line2 = $line2;
return $this;
}
/**
* Get line3 value
* @return string|null
*/
public function getLine3()
{
return $this->line3;
}
/**
* Set line3 value
* @param string $line3
* @return \ColissimoPostage\StructType\ImporterAddress
*/
public function setLine3($line3 = null)
{
// validation for constraint: string
if (!is_null($line3) && !is_string($line3)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($line3)), __LINE__);
}
$this->line3 = $line3;
return $this;
}
/**
* Get countryCode value
* @return string|null
*/
public function getCountryCode()
{
return $this->countryCode;
}
/**
* Set countryCode value
* @param string $countryCode
* @return \ColissimoPostage\StructType\ImporterAddress
*/
public function setCountryCode($countryCode = null)
{
// validation for constraint: string
if (!is_null($countryCode) && !is_string($countryCode)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($countryCode)), __LINE__);
}
$this->countryCode = $countryCode;
return $this;
}
/**
* Get city value
* @return string|null
*/
public function getCity()
{
return $this->city;
}
/**
* Set city value
* @param string $city
* @return \ColissimoPostage\StructType\ImporterAddress
*/
public function setCity($city = null)
{
// validation for constraint: string
if (!is_null($city) && !is_string($city)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($city)), __LINE__);
}
$this->city = $city;
return $this;
}
/**
* Get zipCode value
* @return string|null
*/
public function getZipCode()
{
return $this->zipCode;
}
/**
* Set zipCode value
* @param string $zipCode
* @return \ColissimoPostage\StructType\ImporterAddress
*/
public function setZipCode($zipCode = null)
{
// validation for constraint: string
if (!is_null($zipCode) && !is_string($zipCode)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($zipCode)), __LINE__);
}
$this->zipCode = $zipCode;
return $this;
}
/**
* Get phoneNumber value
* @return string|null
*/
public function getPhoneNumber()
{
return $this->phoneNumber;
}
/**
* Set phoneNumber value
* @param string $phoneNumber
* @return \ColissimoPostage\StructType\ImporterAddress
*/
public function setPhoneNumber($phoneNumber = null)
{
// validation for constraint: string
if (!is_null($phoneNumber) && !is_string($phoneNumber)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($phoneNumber)), __LINE__);
}
$this->phoneNumber = $phoneNumber;
return $this;
}
/**
* Get mobileNumber value
* @return string|null
*/
public function getMobileNumber()
{
return $this->mobileNumber;
}
/**
* Set mobileNumber value
* @param string $mobileNumber
* @return \ColissimoPostage\StructType\ImporterAddress
*/
public function setMobileNumber($mobileNumber = null)
{
// validation for constraint: string
if (!is_null($mobileNumber) && !is_string($mobileNumber)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($mobileNumber)), __LINE__);
}
$this->mobileNumber = $mobileNumber;
return $this;
}
/**
* Get doorCode1 value
* @return string|null
*/
public function getDoorCode1()
{
return $this->doorCode1;
}
/**
* Set doorCode1 value
* @param string $doorCode1
* @return \ColissimoPostage\StructType\ImporterAddress
*/
public function setDoorCode1($doorCode1 = null)
{
// validation for constraint: string
if (!is_null($doorCode1) && !is_string($doorCode1)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($doorCode1)), __LINE__);
}
$this->doorCode1 = $doorCode1;
return $this;
}
/**
* Get doorCode2 value
* @return string|null
*/
public function getDoorCode2()
{
return $this->doorCode2;
}
/**
* Set doorCode2 value
* @param string $doorCode2
* @return \ColissimoPostage\StructType\ImporterAddress
*/
public function setDoorCode2($doorCode2 = null)
{
// validation for constraint: string
if (!is_null($doorCode2) && !is_string($doorCode2)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($doorCode2)), __LINE__);
}
$this->doorCode2 = $doorCode2;
return $this;
}
/**
* Get email value
* @return string|null
*/
public function getEmail()
{
return $this->email;
}
/**
* Set email value
* @param string $email
* @return \ColissimoPostage\StructType\ImporterAddress
*/
public function setEmail($email = null)
{
// validation for constraint: string
if (!is_null($email) && !is_string($email)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($email)), __LINE__);
}
$this->email = $email;
return $this;
}
/**
* Get intercom value
* @return string|null
*/
public function getIntercom()
{
return $this->intercom;
}
/**
* Set intercom value
* @param string $intercom
* @return \ColissimoPostage\StructType\ImporterAddress
*/
public function setIntercom($intercom = null)
{
// validation for constraint: string
if (!is_null($intercom) && !is_string($intercom)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($intercom)), __LINE__);
}
$this->intercom = $intercom;
return $this;
}
/**
* Get language value
* @return string|null
*/
public function getLanguage()
{
return $this->language;
}
/**
* Set language value
* @param string $language
* @return \ColissimoPostage\StructType\ImporterAddress
*/
public function setLanguage($language = null)
{
// validation for constraint: string
if (!is_null($language) && !is_string($language)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($language)), __LINE__);
}
$this->language = $language;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\ImporterAddress
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,203 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for labelResponse StructType
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class LabelResponse extends AbstractStructBase
{
/**
* The label
* Meta informations extracted from the WSDL
* - expectedContentTypes: application/octet-stream
* - minOccurs: 0
* @var string
*/
public $label;
/**
* The cn23
* Meta informations extracted from the WSDL
* - expectedContentTypes: application/octet-stream
* - minOccurs: 0
* @var string
*/
public $cn23;
/**
* The parcelNumber
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $parcelNumber;
/**
* The parcelNumberPartner
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $parcelNumberPartner;
/**
* The pdfUrl
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $pdfUrl;
/**
* Constructor method for labelResponse
* @uses LabelResponse::setLabel()
* @uses LabelResponse::setCn23()
* @uses LabelResponse::setParcelNumber()
* @uses LabelResponse::setParcelNumberPartner()
* @uses LabelResponse::setPdfUrl()
* @param string $label
* @param string $cn23
* @param string $parcelNumber
* @param string $parcelNumberPartner
* @param string $pdfUrl
*/
public function __construct($label = null, $cn23 = null, $parcelNumber = null, $parcelNumberPartner = null, $pdfUrl = null)
{
$this
->setLabel($label)
->setCn23($cn23)
->setParcelNumber($parcelNumber)
->setParcelNumberPartner($parcelNumberPartner)
->setPdfUrl($pdfUrl);
}
/**
* Get label value
* @return string|null
*/
public function getLabel()
{
return $this->label;
}
/**
* Set label value
* @param string $label
* @return \ColissimoPostage\StructType\LabelResponse
*/
public function setLabel($label = null)
{
// validation for constraint: string
if (!is_null($label) && !is_string($label)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($label)), __LINE__);
}
$this->label = $label;
return $this;
}
/**
* Get cn23 value
* @return string|null
*/
public function getCn23()
{
return $this->cn23;
}
/**
* Set cn23 value
* @param string $cn23
* @return \ColissimoPostage\StructType\LabelResponse
*/
public function setCn23($cn23 = null)
{
// validation for constraint: string
if (!is_null($cn23) && !is_string($cn23)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($cn23)), __LINE__);
}
$this->cn23 = $cn23;
return $this;
}
/**
* Get parcelNumber value
* @return string|null
*/
public function getParcelNumber()
{
return $this->parcelNumber;
}
/**
* Set parcelNumber value
* @param string $parcelNumber
* @return \ColissimoPostage\StructType\LabelResponse
*/
public function setParcelNumber($parcelNumber = null)
{
// validation for constraint: string
if (!is_null($parcelNumber) && !is_string($parcelNumber)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($parcelNumber)), __LINE__);
}
$this->parcelNumber = $parcelNumber;
return $this;
}
/**
* Get parcelNumberPartner value
* @return string|null
*/
public function getParcelNumberPartner()
{
return $this->parcelNumberPartner;
}
/**
* Set parcelNumberPartner value
* @param string $parcelNumberPartner
* @return \ColissimoPostage\StructType\LabelResponse
*/
public function setParcelNumberPartner($parcelNumberPartner = null)
{
// validation for constraint: string
if (!is_null($parcelNumberPartner) && !is_string($parcelNumberPartner)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($parcelNumberPartner)), __LINE__);
}
$this->parcelNumberPartner = $parcelNumberPartner;
return $this;
}
/**
* Get pdfUrl value
* @return string|null
*/
public function getPdfUrl()
{
return $this->pdfUrl;
}
/**
* Set pdfUrl value
* @param string $pdfUrl
* @return \ColissimoPostage\StructType\LabelResponse
*/
public function setPdfUrl($pdfUrl = null)
{
// validation for constraint: string
if (!is_null($pdfUrl) && !is_string($pdfUrl)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($pdfUrl)), __LINE__);
}
$this->pdfUrl = $pdfUrl;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\LabelResponse
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,203 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for letter StructType
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class Letter extends AbstractStructBase
{
/**
* The service
* @var \ColissimoPostage\StructType\Service
*/
public $service;
/**
* The parcel
* @var \ColissimoPostage\StructType\Parcel
*/
public $parcel;
/**
* The customsDeclarations
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var \ColissimoPostage\StructType\CustomsDeclarations
*/
public $customsDeclarations;
/**
* The sender
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var \ColissimoPostage\StructType\Sender
*/
public $sender;
/**
* The addressee
* @var \ColissimoPostage\StructType\Addressee
*/
public $addressee;
/**
* The codSenderAddress
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var \ColissimoPostage\StructType\CodSenderAddress
*/
public $codSenderAddress;
/**
* Constructor method for letter
* @uses Letter::setService()
* @uses Letter::setParcel()
* @uses Letter::setCustomsDeclarations()
* @uses Letter::setSender()
* @uses Letter::setAddressee()
* @uses Letter::setCodSenderAddress()
* @param \ColissimoPostage\StructType\Service $service
* @param \ColissimoPostage\StructType\Parcel $parcel
* @param \ColissimoPostage\StructType\CustomsDeclarations $customsDeclarations
* @param \ColissimoPostage\StructType\Sender $sender
* @param \ColissimoPostage\StructType\Addressee $addressee
* @param \ColissimoPostage\StructType\CodSenderAddress $codSenderAddress
*/
public function __construct(\ColissimoPostage\StructType\Service $service = null, \ColissimoPostage\StructType\Parcel $parcel = null, \ColissimoPostage\StructType\CustomsDeclarations $customsDeclarations = null, \ColissimoPostage\StructType\Sender $sender = null, \ColissimoPostage\StructType\Addressee $addressee = null, \ColissimoPostage\StructType\CodSenderAddress $codSenderAddress = null)
{
$this
->setService($service)
->setParcel($parcel)
->setCustomsDeclarations($customsDeclarations)
->setSender($sender)
->setAddressee($addressee)
->setCodSenderAddress($codSenderAddress);
}
/**
* Get service value
* @return \ColissimoPostage\StructType\Service|null
*/
public function getService()
{
return $this->service;
}
/**
* Set service value
* @param \ColissimoPostage\StructType\Service $service
* @return \ColissimoPostage\StructType\Letter
*/
public function setService(\ColissimoPostage\StructType\Service $service = null)
{
$this->service = $service;
return $this;
}
/**
* Get parcel value
* @return \ColissimoPostage\StructType\Parcel|null
*/
public function getParcel()
{
return $this->parcel;
}
/**
* Set parcel value
* @param \ColissimoPostage\StructType\Parcel $parcel
* @return \ColissimoPostage\StructType\Letter
*/
public function setParcel(\ColissimoPostage\StructType\Parcel $parcel = null)
{
$this->parcel = $parcel;
return $this;
}
/**
* Get customsDeclarations value
* @return \ColissimoPostage\StructType\CustomsDeclarations|null
*/
public function getCustomsDeclarations()
{
return $this->customsDeclarations;
}
/**
* Set customsDeclarations value
* @param \ColissimoPostage\StructType\CustomsDeclarations $customsDeclarations
* @return \ColissimoPostage\StructType\Letter
*/
public function setCustomsDeclarations(\ColissimoPostage\StructType\CustomsDeclarations $customsDeclarations = null)
{
$this->customsDeclarations = $customsDeclarations;
return $this;
}
/**
* Get sender value
* @return \ColissimoPostage\StructType\Sender|null
*/
public function getSender()
{
return $this->sender;
}
/**
* Set sender value
* @param \ColissimoPostage\StructType\Sender $sender
* @return \ColissimoPostage\StructType\Letter
*/
public function setSender(\ColissimoPostage\StructType\Sender $sender = null)
{
$this->sender = $sender;
return $this;
}
/**
* Get addressee value
* @return \ColissimoPostage\StructType\Addressee|null
*/
public function getAddressee()
{
return $this->addressee;
}
/**
* Set addressee value
* @param \ColissimoPostage\StructType\Addressee $addressee
* @return \ColissimoPostage\StructType\Letter
*/
public function setAddressee(\ColissimoPostage\StructType\Addressee $addressee = null)
{
$this->addressee = $addressee;
return $this;
}
/**
* Get codSenderAddress value
* @return \ColissimoPostage\StructType\CodSenderAddress|null
*/
public function getCodSenderAddress()
{
return $this->codSenderAddress;
}
/**
* Set codSenderAddress value
* @param \ColissimoPostage\StructType\CodSenderAddress $codSenderAddress
* @return \ColissimoPostage\StructType\Letter
*/
public function setCodSenderAddress(\ColissimoPostage\StructType\CodSenderAddress $codSenderAddress = null)
{
$this->codSenderAddress = $codSenderAddress;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\Letter
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,137 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for Message StructType
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class Message extends AbstractStructBase
{
/**
* The id
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $id;
/**
* The messageContent
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $messageContent;
/**
* The type
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $type;
/**
* Constructor method for Message
* @uses Message::setId()
* @uses Message::setMessageContent()
* @uses Message::setType()
* @param string $id
* @param string $messageContent
* @param string $type
*/
public function __construct($id = null, $messageContent = null, $type = null)
{
$this
->setId($id)
->setMessageContent($messageContent)
->setType($type);
}
/**
* Get id value
* @return string|null
*/
public function getId()
{
return $this->id;
}
/**
* Set id value
* @param string $id
* @return \ColissimoPostage\StructType\Message
*/
public function setId($id = null)
{
// validation for constraint: string
if (!is_null($id) && !is_string($id)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($id)), __LINE__);
}
$this->id = $id;
return $this;
}
/**
* Get messageContent value
* @return string|null
*/
public function getMessageContent()
{
return $this->messageContent;
}
/**
* Set messageContent value
* @param string $messageContent
* @return \ColissimoPostage\StructType\Message
*/
public function setMessageContent($messageContent = null)
{
// validation for constraint: string
if (!is_null($messageContent) && !is_string($messageContent)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($messageContent)), __LINE__);
}
$this->messageContent = $messageContent;
return $this;
}
/**
* Get type value
* @return string|null
*/
public function getType()
{
return $this->type;
}
/**
* Set type value
* @param string $type
* @return \ColissimoPostage\StructType\Message
*/
public function setType($type = null)
{
// validation for constraint: string
if (!is_null($type) && !is_string($type)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($type)), __LINE__);
}
$this->type = $type;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\Message
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,169 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for original StructType
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class Original extends AbstractStructBase
{
/**
* The originalIdent
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $originalIdent;
/**
* The originalInvoiceNumber
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $originalInvoiceNumber;
/**
* The originalInvoiceDate
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $originalInvoiceDate;
/**
* The originalParcelNumber
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $originalParcelNumber;
/**
* Constructor method for original
* @uses Original::setOriginalIdent()
* @uses Original::setOriginalInvoiceNumber()
* @uses Original::setOriginalInvoiceDate()
* @uses Original::setOriginalParcelNumber()
* @param string $originalIdent
* @param string $originalInvoiceNumber
* @param string $originalInvoiceDate
* @param string $originalParcelNumber
*/
public function __construct($originalIdent = null, $originalInvoiceNumber = null, $originalInvoiceDate = null, $originalParcelNumber = null)
{
$this
->setOriginalIdent($originalIdent)
->setOriginalInvoiceNumber($originalInvoiceNumber)
->setOriginalInvoiceDate($originalInvoiceDate)
->setOriginalParcelNumber($originalParcelNumber);
}
/**
* Get originalIdent value
* @return string|null
*/
public function getOriginalIdent()
{
return $this->originalIdent;
}
/**
* Set originalIdent value
* @param string $originalIdent
* @return \ColissimoPostage\StructType\Original
*/
public function setOriginalIdent($originalIdent = null)
{
// validation for constraint: string
if (!is_null($originalIdent) && !is_string($originalIdent)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($originalIdent)), __LINE__);
}
$this->originalIdent = $originalIdent;
return $this;
}
/**
* Get originalInvoiceNumber value
* @return string|null
*/
public function getOriginalInvoiceNumber()
{
return $this->originalInvoiceNumber;
}
/**
* Set originalInvoiceNumber value
* @param string $originalInvoiceNumber
* @return \ColissimoPostage\StructType\Original
*/
public function setOriginalInvoiceNumber($originalInvoiceNumber = null)
{
// validation for constraint: string
if (!is_null($originalInvoiceNumber) && !is_string($originalInvoiceNumber)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($originalInvoiceNumber)), __LINE__);
}
$this->originalInvoiceNumber = $originalInvoiceNumber;
return $this;
}
/**
* Get originalInvoiceDate value
* @return string|null
*/
public function getOriginalInvoiceDate()
{
return $this->originalInvoiceDate;
}
/**
* Set originalInvoiceDate value
* @param string $originalInvoiceDate
* @return \ColissimoPostage\StructType\Original
*/
public function setOriginalInvoiceDate($originalInvoiceDate = null)
{
// validation for constraint: string
if (!is_null($originalInvoiceDate) && !is_string($originalInvoiceDate)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($originalInvoiceDate)), __LINE__);
}
$this->originalInvoiceDate = $originalInvoiceDate;
return $this;
}
/**
* Get originalParcelNumber value
* @return string|null
*/
public function getOriginalParcelNumber()
{
return $this->originalParcelNumber;
}
/**
* Set originalParcelNumber value
* @param string $originalParcelNumber
* @return \ColissimoPostage\StructType\Original
*/
public function setOriginalParcelNumber($originalParcelNumber = null)
{
// validation for constraint: string
if (!is_null($originalParcelNumber) && !is_string($originalParcelNumber)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($originalParcelNumber)), __LINE__);
}
$this->originalParcelNumber = $originalParcelNumber;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\Original
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,233 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for outputFormat StructType
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class OutputFormat extends AbstractStructBase
{
/**
* The x
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var int
*/
public $x;
/**
* The y
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var int
*/
public $y;
/**
* The outputPrintingType
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $outputPrintingType;
/**
* The dematerialized
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var bool
*/
public $dematerialized;
/**
* The returnType
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $returnType;
/**
* The printCODDocument
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var bool
*/
public $printCODDocument;
/**
* Constructor method for outputFormat
* @uses OutputFormat::setX()
* @uses OutputFormat::setY()
* @uses OutputFormat::setOutputPrintingType()
* @uses OutputFormat::setDematerialized()
* @uses OutputFormat::setReturnType()
* @uses OutputFormat::setPrintCODDocument()
* @param int $x
* @param int $y
* @param string $outputPrintingType
* @param bool $dematerialized
* @param string $returnType
* @param bool $printCODDocument
*/
public function __construct($x = null, $y = null, $outputPrintingType = null, $dematerialized = null, $returnType = null, $printCODDocument = null)
{
$this
->setX($x)
->setY($y)
->setOutputPrintingType($outputPrintingType)
->setDematerialized($dematerialized)
->setReturnType($returnType)
->setPrintCODDocument($printCODDocument);
}
/**
* Get x value
* @return int|null
*/
public function getX()
{
return $this->x;
}
/**
* Set x value
* @param int $x
* @return \ColissimoPostage\StructType\OutputFormat
*/
public function setX($x = null)
{
// validation for constraint: int
if (!is_null($x) && !is_numeric($x)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($x)), __LINE__);
}
$this->x = $x;
return $this;
}
/**
* Get y value
* @return int|null
*/
public function getY()
{
return $this->y;
}
/**
* Set y value
* @param int $y
* @return \ColissimoPostage\StructType\OutputFormat
*/
public function setY($y = null)
{
// validation for constraint: int
if (!is_null($y) && !is_numeric($y)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($y)), __LINE__);
}
$this->y = $y;
return $this;
}
/**
* Get outputPrintingType value
* @return string|null
*/
public function getOutputPrintingType()
{
return $this->outputPrintingType;
}
/**
* Set outputPrintingType value
* @param string $outputPrintingType
* @return \ColissimoPostage\StructType\OutputFormat
*/
public function setOutputPrintingType($outputPrintingType = null)
{
// validation for constraint: string
if (!is_null($outputPrintingType) && !is_string($outputPrintingType)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($outputPrintingType)), __LINE__);
}
$this->outputPrintingType = $outputPrintingType;
return $this;
}
/**
* Get dematerialized value
* @return bool|null
*/
public function getDematerialized()
{
return $this->dematerialized;
}
/**
* Set dematerialized value
* @param bool $dematerialized
* @return \ColissimoPostage\StructType\OutputFormat
*/
public function setDematerialized($dematerialized = null)
{
// validation for constraint: boolean
if (!is_null($dematerialized) && !is_bool($dematerialized)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a bool, "%s" given', gettype($dematerialized)), __LINE__);
}
$this->dematerialized = $dematerialized;
return $this;
}
/**
* Get returnType value
* @return string|null
*/
public function getReturnType()
{
return $this->returnType;
}
/**
* Set returnType value
* @param string $returnType
* @return \ColissimoPostage\StructType\OutputFormat
*/
public function setReturnType($returnType = null)
{
// validation for constraint: string
if (!is_null($returnType) && !is_string($returnType)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($returnType)), __LINE__);
}
$this->returnType = $returnType;
return $this;
}
/**
* Get printCODDocument value
* @return bool|null
*/
public function getPrintCODDocument()
{
return $this->printCODDocument;
}
/**
* Set printCODDocument value
* @param bool $printCODDocument
* @return \ColissimoPostage\StructType\OutputFormat
*/
public function setPrintCODDocument($printCODDocument = null)
{
// validation for constraint: boolean
if (!is_null($printCODDocument) && !is_bool($printCODDocument)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a bool, "%s" given', gettype($printCODDocument)), __LINE__);
}
$this->printCODDocument = $printCODDocument;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\OutputFormat
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,453 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for parcel StructType
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class Parcel extends AbstractStructBase
{
/**
* The parcelNumber
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $parcelNumber;
/**
* The insuranceAmount
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var int
*/
public $insuranceAmount;
/**
* The insuranceValue
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var int
*/
public $insuranceValue;
/**
* The recommendationLevel
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $recommendationLevel;
/**
* The weight
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var float
*/
public $weight;
/**
* The nonMachinable
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var bool
*/
public $nonMachinable;
/**
* The COD
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var bool
*/
public $COD;
/**
* The CODAmount
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var int
*/
public $CODAmount;
/**
* The CODCurrency
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $CODCurrency;
/**
* The returnReceipt
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var bool
*/
public $returnReceipt;
/**
* The instructions
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $instructions;
/**
* The pickupLocationId
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $pickupLocationId;
/**
* The ftd
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var bool
*/
public $ftd;
/**
* Constructor method for parcel
* @uses Parcel::setParcelNumber()
* @uses Parcel::setInsuranceAmount()
* @uses Parcel::setInsuranceValue()
* @uses Parcel::setRecommendationLevel()
* @uses Parcel::setWeight()
* @uses Parcel::setNonMachinable()
* @uses Parcel::setCOD()
* @uses Parcel::setCODAmount()
* @uses Parcel::setCODCurrency()
* @uses Parcel::setReturnReceipt()
* @uses Parcel::setInstructions()
* @uses Parcel::setPickupLocationId()
* @uses Parcel::setFtd()
* @param string $parcelNumber
* @param int $insuranceAmount
* @param int $insuranceValue
* @param string $recommendationLevel
* @param float $weight
* @param bool $nonMachinable
* @param bool $cOD
* @param int $cODAmount
* @param string $cODCurrency
* @param bool $returnReceipt
* @param string $instructions
* @param string $pickupLocationId
* @param bool $ftd
*/
public function __construct($parcelNumber = null, $insuranceAmount = null, $insuranceValue = null, $recommendationLevel = null, $weight = null, $nonMachinable = null, $cOD = null, $cODAmount = null, $cODCurrency = null, $returnReceipt = null, $instructions = null, $pickupLocationId = null, $ftd = null)
{
$this
->setParcelNumber($parcelNumber)
->setInsuranceAmount($insuranceAmount)
->setInsuranceValue($insuranceValue)
->setRecommendationLevel($recommendationLevel)
->setWeight($weight)
->setNonMachinable($nonMachinable)
->setCOD($cOD)
->setCODAmount($cODAmount)
->setCODCurrency($cODCurrency)
->setReturnReceipt($returnReceipt)
->setInstructions($instructions)
->setPickupLocationId($pickupLocationId)
->setFtd($ftd);
}
/**
* Get parcelNumber value
* @return string|null
*/
public function getParcelNumber()
{
return $this->parcelNumber;
}
/**
* Set parcelNumber value
* @param string $parcelNumber
* @return \ColissimoPostage\StructType\Parcel
*/
public function setParcelNumber($parcelNumber = null)
{
// validation for constraint: string
if (!is_null($parcelNumber) && !is_string($parcelNumber)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($parcelNumber)), __LINE__);
}
$this->parcelNumber = $parcelNumber;
return $this;
}
/**
* Get insuranceAmount value
* @return int|null
*/
public function getInsuranceAmount()
{
return $this->insuranceAmount;
}
/**
* Set insuranceAmount value
* @param int $insuranceAmount
* @return \ColissimoPostage\StructType\Parcel
*/
public function setInsuranceAmount($insuranceAmount = null)
{
// validation for constraint: int
if (!is_null($insuranceAmount) && !is_numeric($insuranceAmount)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($insuranceAmount)), __LINE__);
}
$this->insuranceAmount = $insuranceAmount;
return $this;
}
/**
* Get insuranceValue value
* @return int|null
*/
public function getInsuranceValue()
{
return $this->insuranceValue;
}
/**
* Set insuranceValue value
* @param int $insuranceValue
* @return \ColissimoPostage\StructType\Parcel
*/
public function setInsuranceValue($insuranceValue = null)
{
// validation for constraint: int
if (!is_null($insuranceValue) && !is_numeric($insuranceValue)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($insuranceValue)), __LINE__);
}
$this->insuranceValue = $insuranceValue;
return $this;
}
/**
* Get recommendationLevel value
* @return string|null
*/
public function getRecommendationLevel()
{
return $this->recommendationLevel;
}
/**
* Set recommendationLevel value
* @param string $recommendationLevel
* @return \ColissimoPostage\StructType\Parcel
*/
public function setRecommendationLevel($recommendationLevel = null)
{
// validation for constraint: string
if (!is_null($recommendationLevel) && !is_string($recommendationLevel)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($recommendationLevel)), __LINE__);
}
$this->recommendationLevel = $recommendationLevel;
return $this;
}
/**
* Get weight value
* @return float|null
*/
public function getWeight()
{
return $this->weight;
}
/**
* Set weight value
* @param float $weight
* @return \ColissimoPostage\StructType\Parcel
*/
public function setWeight($weight = null)
{
$this->weight = $weight;
return $this;
}
/**
* Get nonMachinable value
* @return bool|null
*/
public function getNonMachinable()
{
return $this->nonMachinable;
}
/**
* Set nonMachinable value
* @param bool $nonMachinable
* @return \ColissimoPostage\StructType\Parcel
*/
public function setNonMachinable($nonMachinable = null)
{
// validation for constraint: boolean
if (!is_null($nonMachinable) && !is_bool($nonMachinable)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a bool, "%s" given', gettype($nonMachinable)), __LINE__);
}
$this->nonMachinable = $nonMachinable;
return $this;
}
/**
* Get COD value
* @return bool|null
*/
public function getCOD()
{
return $this->COD;
}
/**
* Set COD value
* @param bool $cOD
* @return \ColissimoPostage\StructType\Parcel
*/
public function setCOD($cOD = null)
{
// validation for constraint: boolean
if (!is_null($cOD) && !is_bool($cOD)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a bool, "%s" given', gettype($cOD)), __LINE__);
}
$this->COD = $cOD;
return $this;
}
/**
* Get CODAmount value
* @return int|null
*/
public function getCODAmount()
{
return $this->CODAmount;
}
/**
* Set CODAmount value
* @param int $cODAmount
* @return \ColissimoPostage\StructType\Parcel
*/
public function setCODAmount($cODAmount = null)
{
// validation for constraint: int
if (!is_null($cODAmount) && !is_numeric($cODAmount)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($cODAmount)), __LINE__);
}
$this->CODAmount = $cODAmount;
return $this;
}
/**
* Get CODCurrency value
* @return string|null
*/
public function getCODCurrency()
{
return $this->CODCurrency;
}
/**
* Set CODCurrency value
* @param string $cODCurrency
* @return \ColissimoPostage\StructType\Parcel
*/
public function setCODCurrency($cODCurrency = null)
{
// validation for constraint: string
if (!is_null($cODCurrency) && !is_string($cODCurrency)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($cODCurrency)), __LINE__);
}
$this->CODCurrency = $cODCurrency;
return $this;
}
/**
* Get returnReceipt value
* @return bool|null
*/
public function getReturnReceipt()
{
return $this->returnReceipt;
}
/**
* Set returnReceipt value
* @param bool $returnReceipt
* @return \ColissimoPostage\StructType\Parcel
*/
public function setReturnReceipt($returnReceipt = null)
{
// validation for constraint: boolean
if (!is_null($returnReceipt) && !is_bool($returnReceipt)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a bool, "%s" given', gettype($returnReceipt)), __LINE__);
}
$this->returnReceipt = $returnReceipt;
return $this;
}
/**
* Get instructions value
* @return string|null
*/
public function getInstructions()
{
return $this->instructions;
}
/**
* Set instructions value
* @param string $instructions
* @return \ColissimoPostage\StructType\Parcel
*/
public function setInstructions($instructions = null)
{
// validation for constraint: string
if (!is_null($instructions) && !is_string($instructions)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($instructions)), __LINE__);
}
$this->instructions = $instructions;
return $this;
}
/**
* Get pickupLocationId value
* @return string|null
*/
public function getPickupLocationId()
{
return $this->pickupLocationId;
}
/**
* Set pickupLocationId value
* @param string $pickupLocationId
* @return \ColissimoPostage\StructType\Parcel
*/
public function setPickupLocationId($pickupLocationId = null)
{
// validation for constraint: string
if (!is_null($pickupLocationId) && !is_string($pickupLocationId)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($pickupLocationId)), __LINE__);
}
$this->pickupLocationId = $pickupLocationId;
return $this;
}
/**
* Get ftd value
* @return bool|null
*/
public function getFtd()
{
return $this->ftd;
}
/**
* Set ftd value
* @param bool $ftd
* @return \ColissimoPostage\StructType\Parcel
*/
public function setFtd($ftd = null)
{
// validation for constraint: boolean
if (!is_null($ftd) && !is_bool($ftd)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a bool, "%s" given', gettype($ftd)), __LINE__);
}
$this->ftd = $ftd;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\Parcel
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,325 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for pickupLocation StructType
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class PickupLocation extends AbstractStructBase
{
/**
* The address
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var \ColissimoPostage\StructType\AddressPickupLocation
*/
public $address;
/**
* The groupRouting
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $groupRouting;
/**
* The name
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $name;
/**
* The netWork
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $netWork;
/**
* The pointId
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $pointId;
/**
* The routingFileVersion
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $routingFileVersion;
/**
* The routingZipCode
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $routingZipCode;
/**
* The serviceLabel
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $serviceLabel;
/**
* The sortDistribution
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $sortDistribution;
/**
* Constructor method for pickupLocation
* @uses PickupLocation::setAddress()
* @uses PickupLocation::setGroupRouting()
* @uses PickupLocation::setName()
* @uses PickupLocation::setNetWork()
* @uses PickupLocation::setPointId()
* @uses PickupLocation::setRoutingFileVersion()
* @uses PickupLocation::setRoutingZipCode()
* @uses PickupLocation::setServiceLabel()
* @uses PickupLocation::setSortDistribution()
* @param \ColissimoPostage\StructType\AddressPickupLocation $address
* @param string $groupRouting
* @param string $name
* @param string $netWork
* @param string $pointId
* @param string $routingFileVersion
* @param string $routingZipCode
* @param string $serviceLabel
* @param string $sortDistribution
*/
public function __construct(\ColissimoPostage\StructType\AddressPickupLocation $address = null, $groupRouting = null, $name = null, $netWork = null, $pointId = null, $routingFileVersion = null, $routingZipCode = null, $serviceLabel = null, $sortDistribution = null)
{
$this
->setAddress($address)
->setGroupRouting($groupRouting)
->setName($name)
->setNetWork($netWork)
->setPointId($pointId)
->setRoutingFileVersion($routingFileVersion)
->setRoutingZipCode($routingZipCode)
->setServiceLabel($serviceLabel)
->setSortDistribution($sortDistribution);
}
/**
* Get address value
* @return \ColissimoPostage\StructType\AddressPickupLocation|null
*/
public function getAddress()
{
return $this->address;
}
/**
* Set address value
* @param \ColissimoPostage\StructType\AddressPickupLocation $address
* @return \ColissimoPostage\StructType\PickupLocation
*/
public function setAddress(\ColissimoPostage\StructType\AddressPickupLocation $address = null)
{
$this->address = $address;
return $this;
}
/**
* Get groupRouting value
* @return string|null
*/
public function getGroupRouting()
{
return $this->groupRouting;
}
/**
* Set groupRouting value
* @param string $groupRouting
* @return \ColissimoPostage\StructType\PickupLocation
*/
public function setGroupRouting($groupRouting = null)
{
// validation for constraint: string
if (!is_null($groupRouting) && !is_string($groupRouting)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($groupRouting)), __LINE__);
}
$this->groupRouting = $groupRouting;
return $this;
}
/**
* Get name value
* @return string|null
*/
public function getName()
{
return $this->name;
}
/**
* Set name value
* @param string $name
* @return \ColissimoPostage\StructType\PickupLocation
*/
public function setName($name = null)
{
// validation for constraint: string
if (!is_null($name) && !is_string($name)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($name)), __LINE__);
}
$this->name = $name;
return $this;
}
/**
* Get netWork value
* @return string|null
*/
public function getNetWork()
{
return $this->netWork;
}
/**
* Set netWork value
* @param string $netWork
* @return \ColissimoPostage\StructType\PickupLocation
*/
public function setNetWork($netWork = null)
{
// validation for constraint: string
if (!is_null($netWork) && !is_string($netWork)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($netWork)), __LINE__);
}
$this->netWork = $netWork;
return $this;
}
/**
* Get pointId value
* @return string|null
*/
public function getPointId()
{
return $this->pointId;
}
/**
* Set pointId value
* @param string $pointId
* @return \ColissimoPostage\StructType\PickupLocation
*/
public function setPointId($pointId = null)
{
// validation for constraint: string
if (!is_null($pointId) && !is_string($pointId)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($pointId)), __LINE__);
}
$this->pointId = $pointId;
return $this;
}
/**
* Get routingFileVersion value
* @return string|null
*/
public function getRoutingFileVersion()
{
return $this->routingFileVersion;
}
/**
* Set routingFileVersion value
* @param string $routingFileVersion
* @return \ColissimoPostage\StructType\PickupLocation
*/
public function setRoutingFileVersion($routingFileVersion = null)
{
// validation for constraint: string
if (!is_null($routingFileVersion) && !is_string($routingFileVersion)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($routingFileVersion)), __LINE__);
}
$this->routingFileVersion = $routingFileVersion;
return $this;
}
/**
* Get routingZipCode value
* @return string|null
*/
public function getRoutingZipCode()
{
return $this->routingZipCode;
}
/**
* Set routingZipCode value
* @param string $routingZipCode
* @return \ColissimoPostage\StructType\PickupLocation
*/
public function setRoutingZipCode($routingZipCode = null)
{
// validation for constraint: string
if (!is_null($routingZipCode) && !is_string($routingZipCode)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($routingZipCode)), __LINE__);
}
$this->routingZipCode = $routingZipCode;
return $this;
}
/**
* Get serviceLabel value
* @return string|null
*/
public function getServiceLabel()
{
return $this->serviceLabel;
}
/**
* Set serviceLabel value
* @param string $serviceLabel
* @return \ColissimoPostage\StructType\PickupLocation
*/
public function setServiceLabel($serviceLabel = null)
{
// validation for constraint: string
if (!is_null($serviceLabel) && !is_string($serviceLabel)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($serviceLabel)), __LINE__);
}
$this->serviceLabel = $serviceLabel;
return $this;
}
/**
* Get sortDistribution value
* @return string|null
*/
public function getSortDistribution()
{
return $this->sortDistribution;
}
/**
* Set sortDistribution value
* @param string $sortDistribution
* @return \ColissimoPostage\StructType\PickupLocation
*/
public function setSortDistribution($sortDistribution = null)
{
// validation for constraint: string
if (!is_null($sortDistribution) && !is_string($sortDistribution)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($sortDistribution)), __LINE__);
}
$this->sortDistribution = $sortDistribution;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\PickupLocation
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,71 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for planPickup StructType
* Meta informations extracted from the WSDL
* - type: tns:planPickup
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class PlanPickup extends AbstractStructBase
{
/**
* The planPickupRequest
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var \ColissimoPostage\StructType\PlanPickupRequest
*/
public $planPickupRequest;
/**
* Constructor method for planPickup
* @uses PlanPickup::setPlanPickupRequest()
* @param \ColissimoPostage\StructType\PlanPickupRequest $planPickupRequest
*/
public function __construct(\ColissimoPostage\StructType\PlanPickupRequest $planPickupRequest = null)
{
$this
->setPlanPickupRequest($planPickupRequest);
}
/**
* Get planPickupRequest value
* @return \ColissimoPostage\StructType\PlanPickupRequest|null
*/
public function getPlanPickupRequest()
{
return $this->planPickupRequest;
}
/**
* Set planPickupRequest value
* @param \ColissimoPostage\StructType\PlanPickupRequest $planPickupRequest
* @return \ColissimoPostage\StructType\PlanPickup
*/
public function setPlanPickupRequest(\ColissimoPostage\StructType\PlanPickupRequest $planPickupRequest = null)
{
$this->planPickupRequest = $planPickupRequest;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\PlanPickup
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,189 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for planPickupRequest StructType
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class PlanPickupRequest extends AbstractStructBase
{
/**
* The contractNumber
* @var string
*/
public $contractNumber;
/**
* The password
* @var string
*/
public $password;
/**
* The parcelNumber
* @var string
*/
public $parcelNumber;
/**
* The mailBoxPickingDate
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $mailBoxPickingDate;
/**
* The sender
* @var \ColissimoPostage\StructType\Sender
*/
public $sender;
/**
* Constructor method for planPickupRequest
* @uses PlanPickupRequest::setContractNumber()
* @uses PlanPickupRequest::setPassword()
* @uses PlanPickupRequest::setParcelNumber()
* @uses PlanPickupRequest::setMailBoxPickingDate()
* @uses PlanPickupRequest::setSender()
* @param string $contractNumber
* @param string $password
* @param string $parcelNumber
* @param string $mailBoxPickingDate
* @param \ColissimoPostage\StructType\Sender $sender
*/
public function __construct($contractNumber = null, $password = null, $parcelNumber = null, $mailBoxPickingDate = null, \ColissimoPostage\StructType\Sender $sender = null)
{
$this
->setContractNumber($contractNumber)
->setPassword($password)
->setParcelNumber($parcelNumber)
->setMailBoxPickingDate($mailBoxPickingDate)
->setSender($sender);
}
/**
* Get contractNumber value
* @return string|null
*/
public function getContractNumber()
{
return $this->contractNumber;
}
/**
* Set contractNumber value
* @param string $contractNumber
* @return \ColissimoPostage\StructType\PlanPickupRequest
*/
public function setContractNumber($contractNumber = null)
{
// validation for constraint: string
if (!is_null($contractNumber) && !is_string($contractNumber)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($contractNumber)), __LINE__);
}
$this->contractNumber = $contractNumber;
return $this;
}
/**
* Get password value
* @return string|null
*/
public function getPassword()
{
return $this->password;
}
/**
* Set password value
* @param string $password
* @return \ColissimoPostage\StructType\PlanPickupRequest
*/
public function setPassword($password = null)
{
// validation for constraint: string
if (!is_null($password) && !is_string($password)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($password)), __LINE__);
}
$this->password = $password;
return $this;
}
/**
* Get parcelNumber value
* @return string|null
*/
public function getParcelNumber()
{
return $this->parcelNumber;
}
/**
* Set parcelNumber value
* @param string $parcelNumber
* @return \ColissimoPostage\StructType\PlanPickupRequest
*/
public function setParcelNumber($parcelNumber = null)
{
// validation for constraint: string
if (!is_null($parcelNumber) && !is_string($parcelNumber)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($parcelNumber)), __LINE__);
}
$this->parcelNumber = $parcelNumber;
return $this;
}
/**
* Get mailBoxPickingDate value
* @return string|null
*/
public function getMailBoxPickingDate()
{
return $this->mailBoxPickingDate;
}
/**
* Set mailBoxPickingDate value
* @param string $mailBoxPickingDate
* @return \ColissimoPostage\StructType\PlanPickupRequest
*/
public function setMailBoxPickingDate($mailBoxPickingDate = null)
{
// validation for constraint: string
if (!is_null($mailBoxPickingDate) && !is_string($mailBoxPickingDate)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($mailBoxPickingDate)), __LINE__);
}
$this->mailBoxPickingDate = $mailBoxPickingDate;
return $this;
}
/**
* Get sender value
* @return \ColissimoPostage\StructType\Sender|null
*/
public function getSender()
{
return $this->sender;
}
/**
* Set sender value
* @param \ColissimoPostage\StructType\Sender $sender
* @return \ColissimoPostage\StructType\PlanPickupRequest
*/
public function setSender(\ColissimoPostage\StructType\Sender $sender = null)
{
$this->sender = $sender;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\PlanPickupRequest
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,189 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for planPickupRequestType StructType
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class PlanPickupRequestType extends AbstractStructBase
{
/**
* The contractNumber
* @var string
*/
public $contractNumber;
/**
* The password
* @var string
*/
public $password;
/**
* The parcelNumber
* @var string
*/
public $parcelNumber;
/**
* The mailBoxPickingDate
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $mailBoxPickingDate;
/**
* The sender
* @var \ColissimoPostage\StructType\Sender
*/
public $sender;
/**
* Constructor method for planPickupRequestType
* @uses PlanPickupRequestType::setContractNumber()
* @uses PlanPickupRequestType::setPassword()
* @uses PlanPickupRequestType::setParcelNumber()
* @uses PlanPickupRequestType::setMailBoxPickingDate()
* @uses PlanPickupRequestType::setSender()
* @param string $contractNumber
* @param string $password
* @param string $parcelNumber
* @param string $mailBoxPickingDate
* @param \ColissimoPostage\StructType\Sender $sender
*/
public function __construct($contractNumber = null, $password = null, $parcelNumber = null, $mailBoxPickingDate = null, \ColissimoPostage\StructType\Sender $sender = null)
{
$this
->setContractNumber($contractNumber)
->setPassword($password)
->setParcelNumber($parcelNumber)
->setMailBoxPickingDate($mailBoxPickingDate)
->setSender($sender);
}
/**
* Get contractNumber value
* @return string|null
*/
public function getContractNumber()
{
return $this->contractNumber;
}
/**
* Set contractNumber value
* @param string $contractNumber
* @return \ColissimoPostage\StructType\PlanPickupRequestType
*/
public function setContractNumber($contractNumber = null)
{
// validation for constraint: string
if (!is_null($contractNumber) && !is_string($contractNumber)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($contractNumber)), __LINE__);
}
$this->contractNumber = $contractNumber;
return $this;
}
/**
* Get password value
* @return string|null
*/
public function getPassword()
{
return $this->password;
}
/**
* Set password value
* @param string $password
* @return \ColissimoPostage\StructType\PlanPickupRequestType
*/
public function setPassword($password = null)
{
// validation for constraint: string
if (!is_null($password) && !is_string($password)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($password)), __LINE__);
}
$this->password = $password;
return $this;
}
/**
* Get parcelNumber value
* @return string|null
*/
public function getParcelNumber()
{
return $this->parcelNumber;
}
/**
* Set parcelNumber value
* @param string $parcelNumber
* @return \ColissimoPostage\StructType\PlanPickupRequestType
*/
public function setParcelNumber($parcelNumber = null)
{
// validation for constraint: string
if (!is_null($parcelNumber) && !is_string($parcelNumber)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($parcelNumber)), __LINE__);
}
$this->parcelNumber = $parcelNumber;
return $this;
}
/**
* Get mailBoxPickingDate value
* @return string|null
*/
public function getMailBoxPickingDate()
{
return $this->mailBoxPickingDate;
}
/**
* Set mailBoxPickingDate value
* @param string $mailBoxPickingDate
* @return \ColissimoPostage\StructType\PlanPickupRequestType
*/
public function setMailBoxPickingDate($mailBoxPickingDate = null)
{
// validation for constraint: string
if (!is_null($mailBoxPickingDate) && !is_string($mailBoxPickingDate)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($mailBoxPickingDate)), __LINE__);
}
$this->mailBoxPickingDate = $mailBoxPickingDate;
return $this;
}
/**
* Get sender value
* @return \ColissimoPostage\StructType\Sender|null
*/
public function getSender()
{
return $this->sender;
}
/**
* Set sender value
* @param \ColissimoPostage\StructType\Sender $sender
* @return \ColissimoPostage\StructType\PlanPickupRequestType
*/
public function setSender(\ColissimoPostage\StructType\Sender $sender = null)
{
$this->sender = $sender;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\PlanPickupRequestType
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,71 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for planPickupResponse StructType
* Meta informations extracted from the WSDL
* - type: tns:planPickupResponse
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class PlanPickupResponse extends AbstractStructBase
{
/**
* The return
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var \ColissimoPostage\StructType\PlanPickupResponseType
*/
public $return;
/**
* Constructor method for planPickupResponse
* @uses PlanPickupResponse::setReturn()
* @param \ColissimoPostage\StructType\PlanPickupResponseType $return
*/
public function __construct(\ColissimoPostage\StructType\PlanPickupResponseType $return = null)
{
$this
->setReturn($return);
}
/**
* Get return value
* @return \ColissimoPostage\StructType\PlanPickupResponseType|null
*/
public function getReturn()
{
return $this->return;
}
/**
* Set return value
* @param \ColissimoPostage\StructType\PlanPickupResponseType $return
* @return \ColissimoPostage\StructType\PlanPickupResponse
*/
public function setReturn(\ColissimoPostage\StructType\PlanPickupResponseType $return = null)
{
$this->return = $return;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\PlanPickupResponse
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,40 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for planPickupResponseType StructType
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class PlanPickupResponseType extends BaseResponse
{
/**
* Constructor method for planPickupResponseType
*/
public function __construct()
{
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\PlanPickupResponseType
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,137 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for returnAddressBelgium StructType
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class ReturnAddressBelgium extends AbstractStructBase
{
/**
* The line1
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $line1;
/**
* The line2
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $line2;
/**
* The mention
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $mention;
/**
* Constructor method for returnAddressBelgium
* @uses ReturnAddressBelgium::setLine1()
* @uses ReturnAddressBelgium::setLine2()
* @uses ReturnAddressBelgium::setMention()
* @param string $line1
* @param string $line2
* @param string $mention
*/
public function __construct($line1 = null, $line2 = null, $mention = null)
{
$this
->setLine1($line1)
->setLine2($line2)
->setMention($mention);
}
/**
* Get line1 value
* @return string|null
*/
public function getLine1()
{
return $this->line1;
}
/**
* Set line1 value
* @param string $line1
* @return \ColissimoPostage\StructType\ReturnAddressBelgium
*/
public function setLine1($line1 = null)
{
// validation for constraint: string
if (!is_null($line1) && !is_string($line1)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($line1)), __LINE__);
}
$this->line1 = $line1;
return $this;
}
/**
* Get line2 value
* @return string|null
*/
public function getLine2()
{
return $this->line2;
}
/**
* Set line2 value
* @param string $line2
* @return \ColissimoPostage\StructType\ReturnAddressBelgium
*/
public function setLine2($line2 = null)
{
// validation for constraint: string
if (!is_null($line2) && !is_string($line2)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($line2)), __LINE__);
}
$this->line2 = $line2;
return $this;
}
/**
* Get mention value
* @return string|null
*/
public function getMention()
{
return $this->mention;
}
/**
* Set mention value
* @param string $mention
* @return \ColissimoPostage\StructType\ReturnAddressBelgium
*/
public function setMention($mention = null)
{
// validation for constraint: string
if (!is_null($mention) && !is_string($mention)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($mention)), __LINE__);
}
$this->mention = $mention;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\ReturnAddressBelgium
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,393 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for routing StructType
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class Routing extends AbstractStructBase
{
/**
* The barcodeId
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $barcodeId;
/**
* The depotDest
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $depotDest;
/**
* The destinationCountry
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $destinationCountry;
/**
* The destinationCountryText
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $destinationCountryText;
/**
* The groupingPriorityLabel
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $groupingPriorityLabel;
/**
* The partnerType
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $partnerType;
/**
* The routingVersion
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $routingVersion;
/**
* The serviceMark
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $serviceMark;
/**
* The serviceText
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $serviceText;
/**
* The sortDest
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $sortDest;
/**
* The sortOrigin
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $sortOrigin;
/**
* Constructor method for routing
* @uses Routing::setBarcodeId()
* @uses Routing::setDepotDest()
* @uses Routing::setDestinationCountry()
* @uses Routing::setDestinationCountryText()
* @uses Routing::setGroupingPriorityLabel()
* @uses Routing::setPartnerType()
* @uses Routing::setRoutingVersion()
* @uses Routing::setServiceMark()
* @uses Routing::setServiceText()
* @uses Routing::setSortDest()
* @uses Routing::setSortOrigin()
* @param string $barcodeId
* @param string $depotDest
* @param string $destinationCountry
* @param string $destinationCountryText
* @param string $groupingPriorityLabel
* @param string $partnerType
* @param string $routingVersion
* @param string $serviceMark
* @param string $serviceText
* @param string $sortDest
* @param string $sortOrigin
*/
public function __construct($barcodeId = null, $depotDest = null, $destinationCountry = null, $destinationCountryText = null, $groupingPriorityLabel = null, $partnerType = null, $routingVersion = null, $serviceMark = null, $serviceText = null, $sortDest = null, $sortOrigin = null)
{
$this
->setBarcodeId($barcodeId)
->setDepotDest($depotDest)
->setDestinationCountry($destinationCountry)
->setDestinationCountryText($destinationCountryText)
->setGroupingPriorityLabel($groupingPriorityLabel)
->setPartnerType($partnerType)
->setRoutingVersion($routingVersion)
->setServiceMark($serviceMark)
->setServiceText($serviceText)
->setSortDest($sortDest)
->setSortOrigin($sortOrigin);
}
/**
* Get barcodeId value
* @return string|null
*/
public function getBarcodeId()
{
return $this->barcodeId;
}
/**
* Set barcodeId value
* @param string $barcodeId
* @return \ColissimoPostage\StructType\Routing
*/
public function setBarcodeId($barcodeId = null)
{
// validation for constraint: string
if (!is_null($barcodeId) && !is_string($barcodeId)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($barcodeId)), __LINE__);
}
$this->barcodeId = $barcodeId;
return $this;
}
/**
* Get depotDest value
* @return string|null
*/
public function getDepotDest()
{
return $this->depotDest;
}
/**
* Set depotDest value
* @param string $depotDest
* @return \ColissimoPostage\StructType\Routing
*/
public function setDepotDest($depotDest = null)
{
// validation for constraint: string
if (!is_null($depotDest) && !is_string($depotDest)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($depotDest)), __LINE__);
}
$this->depotDest = $depotDest;
return $this;
}
/**
* Get destinationCountry value
* @return string|null
*/
public function getDestinationCountry()
{
return $this->destinationCountry;
}
/**
* Set destinationCountry value
* @param string $destinationCountry
* @return \ColissimoPostage\StructType\Routing
*/
public function setDestinationCountry($destinationCountry = null)
{
// validation for constraint: string
if (!is_null($destinationCountry) && !is_string($destinationCountry)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($destinationCountry)), __LINE__);
}
$this->destinationCountry = $destinationCountry;
return $this;
}
/**
* Get destinationCountryText value
* @return string|null
*/
public function getDestinationCountryText()
{
return $this->destinationCountryText;
}
/**
* Set destinationCountryText value
* @param string $destinationCountryText
* @return \ColissimoPostage\StructType\Routing
*/
public function setDestinationCountryText($destinationCountryText = null)
{
// validation for constraint: string
if (!is_null($destinationCountryText) && !is_string($destinationCountryText)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($destinationCountryText)), __LINE__);
}
$this->destinationCountryText = $destinationCountryText;
return $this;
}
/**
* Get groupingPriorityLabel value
* @return string|null
*/
public function getGroupingPriorityLabel()
{
return $this->groupingPriorityLabel;
}
/**
* Set groupingPriorityLabel value
* @param string $groupingPriorityLabel
* @return \ColissimoPostage\StructType\Routing
*/
public function setGroupingPriorityLabel($groupingPriorityLabel = null)
{
// validation for constraint: string
if (!is_null($groupingPriorityLabel) && !is_string($groupingPriorityLabel)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($groupingPriorityLabel)), __LINE__);
}
$this->groupingPriorityLabel = $groupingPriorityLabel;
return $this;
}
/**
* Get partnerType value
* @return string|null
*/
public function getPartnerType()
{
return $this->partnerType;
}
/**
* Set partnerType value
* @param string $partnerType
* @return \ColissimoPostage\StructType\Routing
*/
public function setPartnerType($partnerType = null)
{
// validation for constraint: string
if (!is_null($partnerType) && !is_string($partnerType)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($partnerType)), __LINE__);
}
$this->partnerType = $partnerType;
return $this;
}
/**
* Get routingVersion value
* @return string|null
*/
public function getRoutingVersion()
{
return $this->routingVersion;
}
/**
* Set routingVersion value
* @param string $routingVersion
* @return \ColissimoPostage\StructType\Routing
*/
public function setRoutingVersion($routingVersion = null)
{
// validation for constraint: string
if (!is_null($routingVersion) && !is_string($routingVersion)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($routingVersion)), __LINE__);
}
$this->routingVersion = $routingVersion;
return $this;
}
/**
* Get serviceMark value
* @return string|null
*/
public function getServiceMark()
{
return $this->serviceMark;
}
/**
* Set serviceMark value
* @param string $serviceMark
* @return \ColissimoPostage\StructType\Routing
*/
public function setServiceMark($serviceMark = null)
{
// validation for constraint: string
if (!is_null($serviceMark) && !is_string($serviceMark)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($serviceMark)), __LINE__);
}
$this->serviceMark = $serviceMark;
return $this;
}
/**
* Get serviceText value
* @return string|null
*/
public function getServiceText()
{
return $this->serviceText;
}
/**
* Set serviceText value
* @param string $serviceText
* @return \ColissimoPostage\StructType\Routing
*/
public function setServiceText($serviceText = null)
{
// validation for constraint: string
if (!is_null($serviceText) && !is_string($serviceText)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($serviceText)), __LINE__);
}
$this->serviceText = $serviceText;
return $this;
}
/**
* Get sortDest value
* @return string|null
*/
public function getSortDest()
{
return $this->sortDest;
}
/**
* Set sortDest value
* @param string $sortDest
* @return \ColissimoPostage\StructType\Routing
*/
public function setSortDest($sortDest = null)
{
// validation for constraint: string
if (!is_null($sortDest) && !is_string($sortDest)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($sortDest)), __LINE__);
}
$this->sortDest = $sortDest;
return $this;
}
/**
* Get sortOrigin value
* @return string|null
*/
public function getSortOrigin()
{
return $this->sortOrigin;
}
/**
* Set sortOrigin value
* @param string $sortOrigin
* @return \ColissimoPostage\StructType\Routing
*/
public function setSortOrigin($sortOrigin = null)
{
// validation for constraint: string
if (!is_null($sortOrigin) && !is_string($sortOrigin)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($sortOrigin)), __LINE__);
}
$this->sortOrigin = $sortOrigin;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\Routing
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,483 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for sender StructType
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class Sender extends AbstractStructBase
{
/**
* The senderParcelRef
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $senderParcelRef;
/**
* The address
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var \ColissimoPostage\StructType\Address
*/
public $address;
/**
* The line0
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $line0;
/**
* The line1
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $line1;
/**
* The line2
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $line2;
/**
* The line3
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $line3;
/**
* The countryCode
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $countryCode;
/**
* The zipCode
* @var string
*/
public $zipCode;
/**
* The city
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $city;
/**
* The companyName
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $companyName;
/**
* The lastName
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $lastName;
/**
* The firstName
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $firstName;
/**
* The email
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $email;
/**
* The phoneNumber
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $phoneNumber;
/**
* Constructor method for sender
* @uses Sender::setSenderParcelRef()
* @uses Sender::setAddress()
* @uses Sender::setLine0()
* @uses Sender::setLine1()
* @uses Sender::setLine2()
* @uses Sender::setLine3()
* @uses Sender::setCountryCode()
* @uses Sender::setZipCode()
* @uses Sender::setCity()
* @uses Sender::setCompanyName()
* @uses Sender::setLastName()
* @uses Sender::setFirstName()
* @uses Sender::setEmail()
* @uses Sender::setPhoneNumber()
* @param string $senderParcelRef
* @param \ColissimoPostage\StructType\Address $address
* @param string $line0
* @param string $line1
* @param string $line2
* @param string $line3
* @param string $countryCode
* @param string $zipCode
* @param string $city
* @param string $companyName
* @param string $lastName
* @param string $firstName
* @param string $email
* @param string $phoneNumber
*/
public function __construct($senderParcelRef = null, \ColissimoPostage\StructType\Address $address = null, $line0 = null, $line1 = null, $line2 = null, $line3 = null, $countryCode = null, $zipCode = null, $city = null, $companyName = null, $lastName = null, $firstName = null, $email = null, $phoneNumber = null)
{
$this
->setSenderParcelRef($senderParcelRef)
->setAddress($address)
->setLine0($line0)
->setLine1($line1)
->setLine2($line2)
->setLine3($line3)
->setCountryCode($countryCode)
->setZipCode($zipCode)
->setCity($city)
->setCompanyName($companyName)
->setLastName($lastName)
->setFirstName($firstName)
->setEmail($email)
->setPhoneNumber($phoneNumber);
}
/**
* Get senderParcelRef value
* @return string|null
*/
public function getSenderParcelRef()
{
return $this->senderParcelRef;
}
/**
* Set senderParcelRef value
* @param string $senderParcelRef
* @return \ColissimoPostage\StructType\Sender
*/
public function setSenderParcelRef($senderParcelRef = null)
{
// validation for constraint: string
if (!is_null($senderParcelRef) && !is_string($senderParcelRef)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($senderParcelRef)), __LINE__);
}
$this->senderParcelRef = $senderParcelRef;
return $this;
}
/**
* Get address value
* @return \ColissimoPostage\StructType\Address|null
*/
public function getAddress()
{
return $this->address;
}
/**
* Set address value
* @param \ColissimoPostage\StructType\Address $address
* @return \ColissimoPostage\StructType\Sender
*/
public function setAddress(\ColissimoPostage\StructType\Address $address = null)
{
$this->address = $address;
return $this;
}
/**
* Get line0 value
* @return string|null
*/
public function getLine0()
{
return $this->line0;
}
/**
* Set line0 value
* @param string $line0
* @return \ColissimoPostage\StructType\Sender
*/
public function setLine0($line0 = null)
{
// validation for constraint: string
if (!is_null($line0) && !is_string($line0)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($line0)), __LINE__);
}
$this->line0 = $line0;
return $this;
}
/**
* Get line1 value
* @return string|null
*/
public function getLine1()
{
return $this->line1;
}
/**
* Set line1 value
* @param string $line1
* @return \ColissimoPostage\StructType\Sender
*/
public function setLine1($line1 = null)
{
// validation for constraint: string
if (!is_null($line1) && !is_string($line1)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($line1)), __LINE__);
}
$this->line1 = $line1;
return $this;
}
/**
* Get line2 value
* @return string|null
*/
public function getLine2()
{
return $this->line2;
}
/**
* Set line2 value
* @param string $line2
* @return \ColissimoPostage\StructType\Sender
*/
public function setLine2($line2 = null)
{
// validation for constraint: string
if (!is_null($line2) && !is_string($line2)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($line2)), __LINE__);
}
$this->line2 = $line2;
return $this;
}
/**
* Get line3 value
* @return string|null
*/
public function getLine3()
{
return $this->line3;
}
/**
* Set line3 value
* @param string $line3
* @return \ColissimoPostage\StructType\Sender
*/
public function setLine3($line3 = null)
{
// validation for constraint: string
if (!is_null($line3) && !is_string($line3)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($line3)), __LINE__);
}
$this->line3 = $line3;
return $this;
}
/**
* Get countryCode value
* @return string|null
*/
public function getCountryCode()
{
return $this->countryCode;
}
/**
* Set countryCode value
* @param string $countryCode
* @return \ColissimoPostage\StructType\Sender
*/
public function setCountryCode($countryCode = null)
{
// validation for constraint: string
if (!is_null($countryCode) && !is_string($countryCode)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($countryCode)), __LINE__);
}
$this->countryCode = $countryCode;
return $this;
}
/**
* Get zipCode value
* @return string|null
*/
public function getZipCode()
{
return $this->zipCode;
}
/**
* Set zipCode value
* @param string $zipCode
* @return \ColissimoPostage\StructType\Sender
*/
public function setZipCode($zipCode = null)
{
// validation for constraint: string
if (!is_null($zipCode) && !is_string($zipCode)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($zipCode)), __LINE__);
}
$this->zipCode = $zipCode;
return $this;
}
/**
* Get city value
* @return string|null
*/
public function getCity()
{
return $this->city;
}
/**
* Set city value
* @param string $city
* @return \ColissimoPostage\StructType\Sender
*/
public function setCity($city = null)
{
// validation for constraint: string
if (!is_null($city) && !is_string($city)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($city)), __LINE__);
}
$this->city = $city;
return $this;
}
/**
* Get companyName value
* @return string|null
*/
public function getCompanyName()
{
return $this->companyName;
}
/**
* Set companyName value
* @param string $companyName
* @return \ColissimoPostage\StructType\Sender
*/
public function setCompanyName($companyName = null)
{
// validation for constraint: string
if (!is_null($companyName) && !is_string($companyName)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($companyName)), __LINE__);
}
$this->companyName = $companyName;
return $this;
}
/**
* Get lastName value
* @return string|null
*/
public function getLastName()
{
return $this->lastName;
}
/**
* Set lastName value
* @param string $lastName
* @return \ColissimoPostage\StructType\Sender
*/
public function setLastName($lastName = null)
{
// validation for constraint: string
if (!is_null($lastName) && !is_string($lastName)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($lastName)), __LINE__);
}
$this->lastName = $lastName;
return $this;
}
/**
* Get firstName value
* @return string|null
*/
public function getFirstName()
{
return $this->firstName;
}
/**
* Set firstName value
* @param string $firstName
* @return \ColissimoPostage\StructType\Sender
*/
public function setFirstName($firstName = null)
{
// validation for constraint: string
if (!is_null($firstName) && !is_string($firstName)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($firstName)), __LINE__);
}
$this->firstName = $firstName;
return $this;
}
/**
* Get email value
* @return string|null
*/
public function getEmail()
{
return $this->email;
}
/**
* Set email value
* @param string $email
* @return \ColissimoPostage\StructType\Sender
*/
public function setEmail($email = null)
{
// validation for constraint: string
if (!is_null($email) && !is_string($email)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($email)), __LINE__);
}
$this->email = $email;
return $this;
}
/**
* Get phoneNumber value
* @return string|null
*/
public function getPhoneNumber()
{
return $this->phoneNumber;
}
/**
* Set phoneNumber value
* @param string $phoneNumber
* @return \ColissimoPostage\StructType\Sender
*/
public function setPhoneNumber($phoneNumber = null)
{
// validation for constraint: string
if (!is_null($phoneNumber) && !is_string($phoneNumber)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($phoneNumber)), __LINE__);
}
$this->phoneNumber = $phoneNumber;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\Sender
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,421 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for service StructType
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class Service extends AbstractStructBase
{
/**
* The productCode
* @var string
*/
public $productCode;
/**
* The depositDate
* @var string
*/
public $depositDate;
/**
* The mailBoxPicking
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var bool
*/
public $mailBoxPicking;
/**
* The mailBoxPickingDate
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $mailBoxPickingDate;
/**
* The vatCode
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var int
*/
public $vatCode;
/**
* The vatPercentage
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var int
*/
public $vatPercentage;
/**
* The vatAmount
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var int
*/
public $vatAmount;
/**
* The transportationAmount
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var int
*/
public $transportationAmount;
/**
* The totalAmount
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var int
*/
public $totalAmount;
/**
* The orderNumber
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $orderNumber;
/**
* The commercialName
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $commercialName;
/**
* The returnTypeChoice
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var int
*/
public $returnTypeChoice;
/**
* Constructor method for service
* @uses Service::setProductCode()
* @uses Service::setDepositDate()
* @uses Service::setMailBoxPicking()
* @uses Service::setMailBoxPickingDate()
* @uses Service::setVatCode()
* @uses Service::setVatPercentage()
* @uses Service::setVatAmount()
* @uses Service::setTransportationAmount()
* @uses Service::setTotalAmount()
* @uses Service::setOrderNumber()
* @uses Service::setCommercialName()
* @uses Service::setReturnTypeChoice()
* @param string $productCode
* @param string $depositDate
* @param bool $mailBoxPicking
* @param string $mailBoxPickingDate
* @param int $vatCode
* @param int $vatPercentage
* @param int $vatAmount
* @param int $transportationAmount
* @param int $totalAmount
* @param string $orderNumber
* @param string $commercialName
* @param int $returnTypeChoice
*/
public function __construct($productCode = null, $depositDate = null, $mailBoxPicking = null, $mailBoxPickingDate = null, $vatCode = null, $vatPercentage = null, $vatAmount = null, $transportationAmount = null, $totalAmount = null, $orderNumber = null, $commercialName = null, $returnTypeChoice = null)
{
$this
->setProductCode($productCode)
->setDepositDate($depositDate)
->setMailBoxPicking($mailBoxPicking)
->setMailBoxPickingDate($mailBoxPickingDate)
->setVatCode($vatCode)
->setVatPercentage($vatPercentage)
->setVatAmount($vatAmount)
->setTransportationAmount($transportationAmount)
->setTotalAmount($totalAmount)
->setOrderNumber($orderNumber)
->setCommercialName($commercialName)
->setReturnTypeChoice($returnTypeChoice);
}
/**
* Get productCode value
* @return string|null
*/
public function getProductCode()
{
return $this->productCode;
}
/**
* Set productCode value
* @param string $productCode
* @return \ColissimoPostage\StructType\Service
*/
public function setProductCode($productCode = null)
{
// validation for constraint: string
if (!is_null($productCode) && !is_string($productCode)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($productCode)), __LINE__);
}
$this->productCode = $productCode;
return $this;
}
/**
* Get depositDate value
* @return string|null
*/
public function getDepositDate()
{
return $this->depositDate;
}
/**
* Set depositDate value
* @param string $depositDate
* @return \ColissimoPostage\StructType\Service
*/
public function setDepositDate($depositDate = null)
{
// validation for constraint: string
if (!is_null($depositDate) && !is_string($depositDate)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($depositDate)), __LINE__);
}
$this->depositDate = $depositDate;
return $this;
}
/**
* Get mailBoxPicking value
* @return bool|null
*/
public function getMailBoxPicking()
{
return $this->mailBoxPicking;
}
/**
* Set mailBoxPicking value
* @param bool $mailBoxPicking
* @return \ColissimoPostage\StructType\Service
*/
public function setMailBoxPicking($mailBoxPicking = null)
{
// validation for constraint: boolean
if (!is_null($mailBoxPicking) && !is_bool($mailBoxPicking)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a bool, "%s" given', gettype($mailBoxPicking)), __LINE__);
}
$this->mailBoxPicking = $mailBoxPicking;
return $this;
}
/**
* Get mailBoxPickingDate value
* @return string|null
*/
public function getMailBoxPickingDate()
{
return $this->mailBoxPickingDate;
}
/**
* Set mailBoxPickingDate value
* @param string $mailBoxPickingDate
* @return \ColissimoPostage\StructType\Service
*/
public function setMailBoxPickingDate($mailBoxPickingDate = null)
{
// validation for constraint: string
if (!is_null($mailBoxPickingDate) && !is_string($mailBoxPickingDate)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($mailBoxPickingDate)), __LINE__);
}
$this->mailBoxPickingDate = $mailBoxPickingDate;
return $this;
}
/**
* Get vatCode value
* @return int|null
*/
public function getVatCode()
{
return $this->vatCode;
}
/**
* Set vatCode value
* @param int $vatCode
* @return \ColissimoPostage\StructType\Service
*/
public function setVatCode($vatCode = null)
{
// validation for constraint: int
if (!is_null($vatCode) && !is_numeric($vatCode)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($vatCode)), __LINE__);
}
$this->vatCode = $vatCode;
return $this;
}
/**
* Get vatPercentage value
* @return int|null
*/
public function getVatPercentage()
{
return $this->vatPercentage;
}
/**
* Set vatPercentage value
* @param int $vatPercentage
* @return \ColissimoPostage\StructType\Service
*/
public function setVatPercentage($vatPercentage = null)
{
// validation for constraint: int
if (!is_null($vatPercentage) && !is_numeric($vatPercentage)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($vatPercentage)), __LINE__);
}
$this->vatPercentage = $vatPercentage;
return $this;
}
/**
* Get vatAmount value
* @return int|null
*/
public function getVatAmount()
{
return $this->vatAmount;
}
/**
* Set vatAmount value
* @param int $vatAmount
* @return \ColissimoPostage\StructType\Service
*/
public function setVatAmount($vatAmount = null)
{
// validation for constraint: int
if (!is_null($vatAmount) && !is_numeric($vatAmount)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($vatAmount)), __LINE__);
}
$this->vatAmount = $vatAmount;
return $this;
}
/**
* Get transportationAmount value
* @return int|null
*/
public function getTransportationAmount()
{
return $this->transportationAmount;
}
/**
* Set transportationAmount value
* @param int $transportationAmount
* @return \ColissimoPostage\StructType\Service
*/
public function setTransportationAmount($transportationAmount = null)
{
// validation for constraint: int
if (!is_null($transportationAmount) && !is_numeric($transportationAmount)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($transportationAmount)), __LINE__);
}
$this->transportationAmount = $transportationAmount;
return $this;
}
/**
* Get totalAmount value
* @return int|null
*/
public function getTotalAmount()
{
return $this->totalAmount;
}
/**
* Set totalAmount value
* @param int $totalAmount
* @return \ColissimoPostage\StructType\Service
*/
public function setTotalAmount($totalAmount = null)
{
// validation for constraint: int
if (!is_null($totalAmount) && !is_numeric($totalAmount)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($totalAmount)), __LINE__);
}
$this->totalAmount = $totalAmount;
return $this;
}
/**
* Get orderNumber value
* @return string|null
*/
public function getOrderNumber()
{
return $this->orderNumber;
}
/**
* Set orderNumber value
* @param string $orderNumber
* @return \ColissimoPostage\StructType\Service
*/
public function setOrderNumber($orderNumber = null)
{
// validation for constraint: string
if (!is_null($orderNumber) && !is_string($orderNumber)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($orderNumber)), __LINE__);
}
$this->orderNumber = $orderNumber;
return $this;
}
/**
* Get commercialName value
* @return string|null
*/
public function getCommercialName()
{
return $this->commercialName;
}
/**
* Set commercialName value
* @param string $commercialName
* @return \ColissimoPostage\StructType\Service
*/
public function setCommercialName($commercialName = null)
{
// validation for constraint: string
if (!is_null($commercialName) && !is_string($commercialName)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($commercialName)), __LINE__);
}
$this->commercialName = $commercialName;
return $this;
}
/**
* Get returnTypeChoice value
* @return int|null
*/
public function getReturnTypeChoice()
{
return $this->returnTypeChoice;
}
/**
* Set returnTypeChoice value
* @param int $returnTypeChoice
* @return \ColissimoPostage\StructType\Service
*/
public function setReturnTypeChoice($returnTypeChoice = null)
{
// validation for constraint: int
if (!is_null($returnTypeChoice) && !is_numeric($returnTypeChoice)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a numeric value, "%s" given', gettype($returnTypeChoice)), __LINE__);
}
$this->returnTypeChoice = $returnTypeChoice;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\Service
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,133 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for site StructType
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class Site extends AbstractStructBase
{
/**
* The address
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var \ColissimoPostage\StructType\AddressPCH
*/
public $address;
/**
* The code
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $code;
/**
* The name
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $name;
/**
* Constructor method for site
* @uses Site::setAddress()
* @uses Site::setCode()
* @uses Site::setName()
* @param \ColissimoPostage\StructType\AddressPCH $address
* @param string $code
* @param string $name
*/
public function __construct(\ColissimoPostage\StructType\AddressPCH $address = null, $code = null, $name = null)
{
$this
->setAddress($address)
->setCode($code)
->setName($name);
}
/**
* Get address value
* @return \ColissimoPostage\StructType\AddressPCH|null
*/
public function getAddress()
{
return $this->address;
}
/**
* Set address value
* @param \ColissimoPostage\StructType\AddressPCH $address
* @return \ColissimoPostage\StructType\Site
*/
public function setAddress(\ColissimoPostage\StructType\AddressPCH $address = null)
{
$this->address = $address;
return $this;
}
/**
* Get code value
* @return string|null
*/
public function getCode()
{
return $this->code;
}
/**
* Set code value
* @param string $code
* @return \ColissimoPostage\StructType\Site
*/
public function setCode($code = null)
{
// validation for constraint: string
if (!is_null($code) && !is_string($code)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($code)), __LINE__);
}
$this->code = $code;
return $this;
}
/**
* Get name value
* @return string|null
*/
public function getName()
{
return $this->name;
}
/**
* Set name value
* @param string $name
* @return \ColissimoPostage\StructType\Site
*/
public function setName($name = null)
{
// validation for constraint: string
if (!is_null($name) && !is_string($name)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($name)), __LINE__);
}
$this->name = $name;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\Site
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,169 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for swissLabel StructType
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class SwissLabel extends AbstractStructBase
{
/**
* The injectionSite
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $injectionSite;
/**
* The signatureOption
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var bool
*/
public $signatureOption;
/**
* The codeSwissPost
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $codeSwissPost;
/**
* The swissParcelNumber
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $swissParcelNumber;
/**
* Constructor method for swissLabel
* @uses SwissLabel::setInjectionSite()
* @uses SwissLabel::setSignatureOption()
* @uses SwissLabel::setCodeSwissPost()
* @uses SwissLabel::setSwissParcelNumber()
* @param string $injectionSite
* @param bool $signatureOption
* @param string $codeSwissPost
* @param string $swissParcelNumber
*/
public function __construct($injectionSite = null, $signatureOption = null, $codeSwissPost = null, $swissParcelNumber = null)
{
$this
->setInjectionSite($injectionSite)
->setSignatureOption($signatureOption)
->setCodeSwissPost($codeSwissPost)
->setSwissParcelNumber($swissParcelNumber);
}
/**
* Get injectionSite value
* @return string|null
*/
public function getInjectionSite()
{
return $this->injectionSite;
}
/**
* Set injectionSite value
* @param string $injectionSite
* @return \ColissimoPostage\StructType\SwissLabel
*/
public function setInjectionSite($injectionSite = null)
{
// validation for constraint: string
if (!is_null($injectionSite) && !is_string($injectionSite)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($injectionSite)), __LINE__);
}
$this->injectionSite = $injectionSite;
return $this;
}
/**
* Get signatureOption value
* @return bool|null
*/
public function getSignatureOption()
{
return $this->signatureOption;
}
/**
* Set signatureOption value
* @param bool $signatureOption
* @return \ColissimoPostage\StructType\SwissLabel
*/
public function setSignatureOption($signatureOption = null)
{
// validation for constraint: boolean
if (!is_null($signatureOption) && !is_bool($signatureOption)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a bool, "%s" given', gettype($signatureOption)), __LINE__);
}
$this->signatureOption = $signatureOption;
return $this;
}
/**
* Get codeSwissPost value
* @return string|null
*/
public function getCodeSwissPost()
{
return $this->codeSwissPost;
}
/**
* Set codeSwissPost value
* @param string $codeSwissPost
* @return \ColissimoPostage\StructType\SwissLabel
*/
public function setCodeSwissPost($codeSwissPost = null)
{
// validation for constraint: string
if (!is_null($codeSwissPost) && !is_string($codeSwissPost)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($codeSwissPost)), __LINE__);
}
$this->codeSwissPost = $codeSwissPost;
return $this;
}
/**
* Get swissParcelNumber value
* @return string|null
*/
public function getSwissParcelNumber()
{
return $this->swissParcelNumber;
}
/**
* Set swissParcelNumber value
* @param string $swissParcelNumber
* @return \ColissimoPostage\StructType\SwissLabel
*/
public function setSwissParcelNumber($swissParcelNumber = null)
{
// validation for constraint: string
if (!is_null($swissParcelNumber) && !is_string($swissParcelNumber)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($swissParcelNumber)), __LINE__);
}
$this->swissParcelNumber = $swissParcelNumber;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\SwissLabel
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,647 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for xmlResponse StructType
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class XmlResponse extends AbstractStructBase
{
/**
* The cn23
* Meta informations extracted from the WSDL
* - expectedContentTypes: application/octet-stream
* - minOccurs: 0
* @var string
*/
public $cn23;
/**
* The addressee
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var \ColissimoPostage\StructType\Addressee
*/
public $addressee;
/**
* The barCodeCityssimo
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $barCodeCityssimo;
/**
* The barCodePCH
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $barCodePCH;
/**
* The barCodeRouting
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $barCodeRouting;
/**
* The belgiumLabel
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var \ColissimoPostage\StructType\BelgiumLabel
*/
public $belgiumLabel;
/**
* The cabAztec
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $cabAztec;
/**
* The contractNumber
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $contractNumber;
/**
* The elementVisual
* Meta informations extracted from the WSDL
* - maxOccurs: unbounded
* - minOccurs: 0
* - nillable: true
* @var \ColissimoPostage\StructType\ElementVisual[]
*/
public $elementVisual;
/**
* The numberPCH
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $numberPCH;
/**
* The numberRouting
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $numberRouting;
/**
* The parcelNumber
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $parcelNumber;
/**
* The parcelNumberPartner
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $parcelNumberPartner;
/**
* The pickupLocation
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var \ColissimoPostage\StructType\PickupLocation
*/
public $pickupLocation;
/**
* The routing
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var \ColissimoPostage\StructType\Routing
*/
public $routing;
/**
* The sender
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var \ColissimoPostage\StructType\Sender
*/
public $sender;
/**
* The sitePCH
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var \ColissimoPostage\StructType\Site
*/
public $sitePCH;
/**
* The swissLabel
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var \ColissimoPostage\StructType\SwissLabel
*/
public $swissLabel;
/**
* The zoneRouting
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var \ColissimoPostage\StructType\ZoneRouting
*/
public $zoneRouting;
/**
* Constructor method for xmlResponse
* @uses XmlResponse::setCn23()
* @uses XmlResponse::setAddressee()
* @uses XmlResponse::setBarCodeCityssimo()
* @uses XmlResponse::setBarCodePCH()
* @uses XmlResponse::setBarCodeRouting()
* @uses XmlResponse::setBelgiumLabel()
* @uses XmlResponse::setCabAztec()
* @uses XmlResponse::setContractNumber()
* @uses XmlResponse::setElementVisual()
* @uses XmlResponse::setNumberPCH()
* @uses XmlResponse::setNumberRouting()
* @uses XmlResponse::setParcelNumber()
* @uses XmlResponse::setParcelNumberPartner()
* @uses XmlResponse::setPickupLocation()
* @uses XmlResponse::setRouting()
* @uses XmlResponse::setSender()
* @uses XmlResponse::setSitePCH()
* @uses XmlResponse::setSwissLabel()
* @uses XmlResponse::setZoneRouting()
* @param string $cn23
* @param \ColissimoPostage\StructType\Addressee $addressee
* @param string $barCodeCityssimo
* @param string $barCodePCH
* @param string $barCodeRouting
* @param \ColissimoPostage\StructType\BelgiumLabel $belgiumLabel
* @param string $cabAztec
* @param string $contractNumber
* @param \ColissimoPostage\StructType\ElementVisual[] $elementVisual
* @param string $numberPCH
* @param string $numberRouting
* @param string $parcelNumber
* @param string $parcelNumberPartner
* @param \ColissimoPostage\StructType\PickupLocation $pickupLocation
* @param \ColissimoPostage\StructType\Routing $routing
* @param \ColissimoPostage\StructType\Sender $sender
* @param \ColissimoPostage\StructType\Site $sitePCH
* @param \ColissimoPostage\StructType\SwissLabel $swissLabel
* @param \ColissimoPostage\StructType\ZoneRouting $zoneRouting
*/
public function __construct($cn23 = null, \ColissimoPostage\StructType\Addressee $addressee = null, $barCodeCityssimo = null, $barCodePCH = null, $barCodeRouting = null, \ColissimoPostage\StructType\BelgiumLabel $belgiumLabel = null, $cabAztec = null, $contractNumber = null, array $elementVisual = array(), $numberPCH = null, $numberRouting = null, $parcelNumber = null, $parcelNumberPartner = null, \ColissimoPostage\StructType\PickupLocation $pickupLocation = null, \ColissimoPostage\StructType\Routing $routing = null, \ColissimoPostage\StructType\Sender $sender = null, \ColissimoPostage\StructType\Site $sitePCH = null, \ColissimoPostage\StructType\SwissLabel $swissLabel = null, \ColissimoPostage\StructType\ZoneRouting $zoneRouting = null)
{
$this
->setCn23($cn23)
->setAddressee($addressee)
->setBarCodeCityssimo($barCodeCityssimo)
->setBarCodePCH($barCodePCH)
->setBarCodeRouting($barCodeRouting)
->setBelgiumLabel($belgiumLabel)
->setCabAztec($cabAztec)
->setContractNumber($contractNumber)
->setElementVisual($elementVisual)
->setNumberPCH($numberPCH)
->setNumberRouting($numberRouting)
->setParcelNumber($parcelNumber)
->setParcelNumberPartner($parcelNumberPartner)
->setPickupLocation($pickupLocation)
->setRouting($routing)
->setSender($sender)
->setSitePCH($sitePCH)
->setSwissLabel($swissLabel)
->setZoneRouting($zoneRouting);
}
/**
* Get cn23 value
* @return string|null
*/
public function getCn23()
{
return $this->cn23;
}
/**
* Set cn23 value
* @param string $cn23
* @return \ColissimoPostage\StructType\XmlResponse
*/
public function setCn23($cn23 = null)
{
// validation for constraint: string
if (!is_null($cn23) && !is_string($cn23)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($cn23)), __LINE__);
}
$this->cn23 = $cn23;
return $this;
}
/**
* Get addressee value
* @return \ColissimoPostage\StructType\Addressee|null
*/
public function getAddressee()
{
return $this->addressee;
}
/**
* Set addressee value
* @param \ColissimoPostage\StructType\Addressee $addressee
* @return \ColissimoPostage\StructType\XmlResponse
*/
public function setAddressee(\ColissimoPostage\StructType\Addressee $addressee = null)
{
$this->addressee = $addressee;
return $this;
}
/**
* Get barCodeCityssimo value
* @return string|null
*/
public function getBarCodeCityssimo()
{
return $this->barCodeCityssimo;
}
/**
* Set barCodeCityssimo value
* @param string $barCodeCityssimo
* @return \ColissimoPostage\StructType\XmlResponse
*/
public function setBarCodeCityssimo($barCodeCityssimo = null)
{
// validation for constraint: string
if (!is_null($barCodeCityssimo) && !is_string($barCodeCityssimo)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($barCodeCityssimo)), __LINE__);
}
$this->barCodeCityssimo = $barCodeCityssimo;
return $this;
}
/**
* Get barCodePCH value
* @return string|null
*/
public function getBarCodePCH()
{
return $this->barCodePCH;
}
/**
* Set barCodePCH value
* @param string $barCodePCH
* @return \ColissimoPostage\StructType\XmlResponse
*/
public function setBarCodePCH($barCodePCH = null)
{
// validation for constraint: string
if (!is_null($barCodePCH) && !is_string($barCodePCH)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($barCodePCH)), __LINE__);
}
$this->barCodePCH = $barCodePCH;
return $this;
}
/**
* Get barCodeRouting value
* @return string|null
*/
public function getBarCodeRouting()
{
return $this->barCodeRouting;
}
/**
* Set barCodeRouting value
* @param string $barCodeRouting
* @return \ColissimoPostage\StructType\XmlResponse
*/
public function setBarCodeRouting($barCodeRouting = null)
{
// validation for constraint: string
if (!is_null($barCodeRouting) && !is_string($barCodeRouting)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($barCodeRouting)), __LINE__);
}
$this->barCodeRouting = $barCodeRouting;
return $this;
}
/**
* Get belgiumLabel value
* @return \ColissimoPostage\StructType\BelgiumLabel|null
*/
public function getBelgiumLabel()
{
return $this->belgiumLabel;
}
/**
* Set belgiumLabel value
* @param \ColissimoPostage\StructType\BelgiumLabel $belgiumLabel
* @return \ColissimoPostage\StructType\XmlResponse
*/
public function setBelgiumLabel(\ColissimoPostage\StructType\BelgiumLabel $belgiumLabel = null)
{
$this->belgiumLabel = $belgiumLabel;
return $this;
}
/**
* Get cabAztec value
* @return string|null
*/
public function getCabAztec()
{
return $this->cabAztec;
}
/**
* Set cabAztec value
* @param string $cabAztec
* @return \ColissimoPostage\StructType\XmlResponse
*/
public function setCabAztec($cabAztec = null)
{
// validation for constraint: string
if (!is_null($cabAztec) && !is_string($cabAztec)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($cabAztec)), __LINE__);
}
$this->cabAztec = $cabAztec;
return $this;
}
/**
* Get contractNumber value
* @return string|null
*/
public function getContractNumber()
{
return $this->contractNumber;
}
/**
* Set contractNumber value
* @param string $contractNumber
* @return \ColissimoPostage\StructType\XmlResponse
*/
public function setContractNumber($contractNumber = null)
{
// validation for constraint: string
if (!is_null($contractNumber) && !is_string($contractNumber)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($contractNumber)), __LINE__);
}
$this->contractNumber = $contractNumber;
return $this;
}
/**
* Get elementVisual value
* An additional test has been added (isset) before returning the property value as
* this property may have been unset before, due to the fact that this property is
* removable from the request (nillable=true+minOccurs=0)
* @return \ColissimoPostage\StructType\ElementVisual[]|null
*/
public function getElementVisual()
{
return isset($this->elementVisual) ? $this->elementVisual : null;
}
/**
* Set elementVisual value
* This property is removable from request (nillable=true+minOccurs=0), therefore
* if the value assigned to this property is null, it is removed from this object
* @throws \InvalidArgumentException
* @param \ColissimoPostage\StructType\ElementVisual[] $elementVisual
* @return \ColissimoPostage\StructType\XmlResponse
*/
public function setElementVisual(array $elementVisual = array())
{
foreach ($elementVisual as $xmlResponseElementVisualItem) {
// validation for constraint: itemType
if (!$xmlResponseElementVisualItem instanceof \ColissimoPostage\StructType\ElementVisual) {
throw new \InvalidArgumentException(sprintf('The elementVisual property can only contain items of \ColissimoPostage\StructType\ElementVisual, "%s" given', is_object($xmlResponseElementVisualItem) ? get_class($xmlResponseElementVisualItem) : gettype($xmlResponseElementVisualItem)), __LINE__);
}
}
if (is_null($elementVisual) || (is_array($elementVisual) && empty($elementVisual))) {
unset($this->elementVisual);
} else {
$this->elementVisual = $elementVisual;
}
return $this;
}
/**
* Add item to elementVisual value
* @throws \InvalidArgumentException
* @param \ColissimoPostage\StructType\ElementVisual $item
* @return \ColissimoPostage\StructType\XmlResponse
*/
public function addToElementVisual(\ColissimoPostage\StructType\ElementVisual $item)
{
// validation for constraint: itemType
if (!$item instanceof \ColissimoPostage\StructType\ElementVisual) {
throw new \InvalidArgumentException(sprintf('The elementVisual property can only contain items of \ColissimoPostage\StructType\ElementVisual, "%s" given', is_object($item) ? get_class($item) : gettype($item)), __LINE__);
}
$this->elementVisual[] = $item;
return $this;
}
/**
* Get numberPCH value
* @return string|null
*/
public function getNumberPCH()
{
return $this->numberPCH;
}
/**
* Set numberPCH value
* @param string $numberPCH
* @return \ColissimoPostage\StructType\XmlResponse
*/
public function setNumberPCH($numberPCH = null)
{
// validation for constraint: string
if (!is_null($numberPCH) && !is_string($numberPCH)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($numberPCH)), __LINE__);
}
$this->numberPCH = $numberPCH;
return $this;
}
/**
* Get numberRouting value
* @return string|null
*/
public function getNumberRouting()
{
return $this->numberRouting;
}
/**
* Set numberRouting value
* @param string $numberRouting
* @return \ColissimoPostage\StructType\XmlResponse
*/
public function setNumberRouting($numberRouting = null)
{
// validation for constraint: string
if (!is_null($numberRouting) && !is_string($numberRouting)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($numberRouting)), __LINE__);
}
$this->numberRouting = $numberRouting;
return $this;
}
/**
* Get parcelNumber value
* @return string|null
*/
public function getParcelNumber()
{
return $this->parcelNumber;
}
/**
* Set parcelNumber value
* @param string $parcelNumber
* @return \ColissimoPostage\StructType\XmlResponse
*/
public function setParcelNumber($parcelNumber = null)
{
// validation for constraint: string
if (!is_null($parcelNumber) && !is_string($parcelNumber)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($parcelNumber)), __LINE__);
}
$this->parcelNumber = $parcelNumber;
return $this;
}
/**
* Get parcelNumberPartner value
* @return string|null
*/
public function getParcelNumberPartner()
{
return $this->parcelNumberPartner;
}
/**
* Set parcelNumberPartner value
* @param string $parcelNumberPartner
* @return \ColissimoPostage\StructType\XmlResponse
*/
public function setParcelNumberPartner($parcelNumberPartner = null)
{
// validation for constraint: string
if (!is_null($parcelNumberPartner) && !is_string($parcelNumberPartner)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($parcelNumberPartner)), __LINE__);
}
$this->parcelNumberPartner = $parcelNumberPartner;
return $this;
}
/**
* Get pickupLocation value
* @return \ColissimoPostage\StructType\PickupLocation|null
*/
public function getPickupLocation()
{
return $this->pickupLocation;
}
/**
* Set pickupLocation value
* @param \ColissimoPostage\StructType\PickupLocation $pickupLocation
* @return \ColissimoPostage\StructType\XmlResponse
*/
public function setPickupLocation(\ColissimoPostage\StructType\PickupLocation $pickupLocation = null)
{
$this->pickupLocation = $pickupLocation;
return $this;
}
/**
* Get routing value
* @return \ColissimoPostage\StructType\Routing|null
*/
public function getRouting()
{
return $this->routing;
}
/**
* Set routing value
* @param \ColissimoPostage\StructType\Routing $routing
* @return \ColissimoPostage\StructType\XmlResponse
*/
public function setRouting(\ColissimoPostage\StructType\Routing $routing = null)
{
$this->routing = $routing;
return $this;
}
/**
* Get sender value
* @return \ColissimoPostage\StructType\Sender|null
*/
public function getSender()
{
return $this->sender;
}
/**
* Set sender value
* @param \ColissimoPostage\StructType\Sender $sender
* @return \ColissimoPostage\StructType\XmlResponse
*/
public function setSender(\ColissimoPostage\StructType\Sender $sender = null)
{
$this->sender = $sender;
return $this;
}
/**
* Get sitePCH value
* @return \ColissimoPostage\StructType\Site|null
*/
public function getSitePCH()
{
return $this->sitePCH;
}
/**
* Set sitePCH value
* @param \ColissimoPostage\StructType\Site $sitePCH
* @return \ColissimoPostage\StructType\XmlResponse
*/
public function setSitePCH(\ColissimoPostage\StructType\Site $sitePCH = null)
{
$this->sitePCH = $sitePCH;
return $this;
}
/**
* Get swissLabel value
* @return \ColissimoPostage\StructType\SwissLabel|null
*/
public function getSwissLabel()
{
return $this->swissLabel;
}
/**
* Set swissLabel value
* @param \ColissimoPostage\StructType\SwissLabel $swissLabel
* @return \ColissimoPostage\StructType\XmlResponse
*/
public function setSwissLabel(\ColissimoPostage\StructType\SwissLabel $swissLabel = null)
{
$this->swissLabel = $swissLabel;
return $this;
}
/**
* Get zoneRouting value
* @return \ColissimoPostage\StructType\ZoneRouting|null
*/
public function getZoneRouting()
{
return $this->zoneRouting;
}
/**
* Set zoneRouting value
* @param \ColissimoPostage\StructType\ZoneRouting $zoneRouting
* @return \ColissimoPostage\StructType\XmlResponse
*/
public function setZoneRouting(\ColissimoPostage\StructType\ZoneRouting $zoneRouting = null)
{
$this->zoneRouting = $zoneRouting;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\XmlResponse
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,105 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for zoneCABRoutage StructType
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class ZoneCABRoutage extends AbstractStructBase
{
/**
* The barCodeRouting
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $barCodeRouting;
/**
* The parcelNumberRouting
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $parcelNumberRouting;
/**
* Constructor method for zoneCABRoutage
* @uses ZoneCABRoutage::setBarCodeRouting()
* @uses ZoneCABRoutage::setParcelNumberRouting()
* @param string $barCodeRouting
* @param string $parcelNumberRouting
*/
public function __construct($barCodeRouting = null, $parcelNumberRouting = null)
{
$this
->setBarCodeRouting($barCodeRouting)
->setParcelNumberRouting($parcelNumberRouting);
}
/**
* Get barCodeRouting value
* @return string|null
*/
public function getBarCodeRouting()
{
return $this->barCodeRouting;
}
/**
* Set barCodeRouting value
* @param string $barCodeRouting
* @return \ColissimoPostage\StructType\ZoneCABRoutage
*/
public function setBarCodeRouting($barCodeRouting = null)
{
// validation for constraint: string
if (!is_null($barCodeRouting) && !is_string($barCodeRouting)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($barCodeRouting)), __LINE__);
}
$this->barCodeRouting = $barCodeRouting;
return $this;
}
/**
* Get parcelNumberRouting value
* @return string|null
*/
public function getParcelNumberRouting()
{
return $this->parcelNumberRouting;
}
/**
* Set parcelNumberRouting value
* @param string $parcelNumberRouting
* @return \ColissimoPostage\StructType\ZoneCABRoutage
*/
public function setParcelNumberRouting($parcelNumberRouting = null)
{
// validation for constraint: string
if (!is_null($parcelNumberRouting) && !is_string($parcelNumberRouting)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($parcelNumberRouting)), __LINE__);
}
$this->parcelNumberRouting = $parcelNumberRouting;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\ZoneCABRoutage
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,489 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for zoneInfosRoutage StructType
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class ZoneInfosRoutage extends AbstractStructBase
{
/**
* The controlKeyTrackingNumber
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $controlKeyTrackingNumber;
/**
* The datePrinting
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $datePrinting;
/**
* The hourPrinting
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $hourPrinting;
/**
* The identificationDestination1
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $identificationDestination1;
/**
* The identificationDestination2
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $identificationDestination2;
/**
* The MSort
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $MSort;
/**
* The numberVersionWS
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $numberVersionWS;
/**
* The routingVersion
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $routingVersion;
/**
* The serviceMark
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $serviceMark;
/**
* The sortDest
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $sortDest;
/**
* The sortOrigin
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $sortOrigin;
/**
* The trackingNumberRouting
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $trackingNumberRouting;
/**
* The typeServiceLivraison
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $typeServiceLivraison;
/**
* The rDepot
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var string
*/
public $rDepot;
/**
* Constructor method for zoneInfosRoutage
* @uses ZoneInfosRoutage::setControlKeyTrackingNumber()
* @uses ZoneInfosRoutage::setDatePrinting()
* @uses ZoneInfosRoutage::setHourPrinting()
* @uses ZoneInfosRoutage::setIdentificationDestination1()
* @uses ZoneInfosRoutage::setIdentificationDestination2()
* @uses ZoneInfosRoutage::setMSort()
* @uses ZoneInfosRoutage::setNumberVersionWS()
* @uses ZoneInfosRoutage::setRoutingVersion()
* @uses ZoneInfosRoutage::setServiceMark()
* @uses ZoneInfosRoutage::setSortDest()
* @uses ZoneInfosRoutage::setSortOrigin()
* @uses ZoneInfosRoutage::setTrackingNumberRouting()
* @uses ZoneInfosRoutage::setTypeServiceLivraison()
* @uses ZoneInfosRoutage::setRDepot()
* @param string $controlKeyTrackingNumber
* @param string $datePrinting
* @param string $hourPrinting
* @param string $identificationDestination1
* @param string $identificationDestination2
* @param string $mSort
* @param string $numberVersionWS
* @param string $routingVersion
* @param string $serviceMark
* @param string $sortDest
* @param string $sortOrigin
* @param string $trackingNumberRouting
* @param string $typeServiceLivraison
* @param string $rDepot
*/
public function __construct($controlKeyTrackingNumber = null, $datePrinting = null, $hourPrinting = null, $identificationDestination1 = null, $identificationDestination2 = null, $mSort = null, $numberVersionWS = null, $routingVersion = null, $serviceMark = null, $sortDest = null, $sortOrigin = null, $trackingNumberRouting = null, $typeServiceLivraison = null, $rDepot = null)
{
$this
->setControlKeyTrackingNumber($controlKeyTrackingNumber)
->setDatePrinting($datePrinting)
->setHourPrinting($hourPrinting)
->setIdentificationDestination1($identificationDestination1)
->setIdentificationDestination2($identificationDestination2)
->setMSort($mSort)
->setNumberVersionWS($numberVersionWS)
->setRoutingVersion($routingVersion)
->setServiceMark($serviceMark)
->setSortDest($sortDest)
->setSortOrigin($sortOrigin)
->setTrackingNumberRouting($trackingNumberRouting)
->setTypeServiceLivraison($typeServiceLivraison)
->setRDepot($rDepot);
}
/**
* Get controlKeyTrackingNumber value
* @return string|null
*/
public function getControlKeyTrackingNumber()
{
return $this->controlKeyTrackingNumber;
}
/**
* Set controlKeyTrackingNumber value
* @param string $controlKeyTrackingNumber
* @return \ColissimoPostage\StructType\ZoneInfosRoutage
*/
public function setControlKeyTrackingNumber($controlKeyTrackingNumber = null)
{
// validation for constraint: string
if (!is_null($controlKeyTrackingNumber) && !is_string($controlKeyTrackingNumber)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($controlKeyTrackingNumber)), __LINE__);
}
$this->controlKeyTrackingNumber = $controlKeyTrackingNumber;
return $this;
}
/**
* Get datePrinting value
* @return string|null
*/
public function getDatePrinting()
{
return $this->datePrinting;
}
/**
* Set datePrinting value
* @param string $datePrinting
* @return \ColissimoPostage\StructType\ZoneInfosRoutage
*/
public function setDatePrinting($datePrinting = null)
{
// validation for constraint: string
if (!is_null($datePrinting) && !is_string($datePrinting)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($datePrinting)), __LINE__);
}
$this->datePrinting = $datePrinting;
return $this;
}
/**
* Get hourPrinting value
* @return string|null
*/
public function getHourPrinting()
{
return $this->hourPrinting;
}
/**
* Set hourPrinting value
* @param string $hourPrinting
* @return \ColissimoPostage\StructType\ZoneInfosRoutage
*/
public function setHourPrinting($hourPrinting = null)
{
// validation for constraint: string
if (!is_null($hourPrinting) && !is_string($hourPrinting)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($hourPrinting)), __LINE__);
}
$this->hourPrinting = $hourPrinting;
return $this;
}
/**
* Get identificationDestination1 value
* @return string|null
*/
public function getIdentificationDestination1()
{
return $this->identificationDestination1;
}
/**
* Set identificationDestination1 value
* @param string $identificationDestination1
* @return \ColissimoPostage\StructType\ZoneInfosRoutage
*/
public function setIdentificationDestination1($identificationDestination1 = null)
{
// validation for constraint: string
if (!is_null($identificationDestination1) && !is_string($identificationDestination1)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($identificationDestination1)), __LINE__);
}
$this->identificationDestination1 = $identificationDestination1;
return $this;
}
/**
* Get identificationDestination2 value
* @return string|null
*/
public function getIdentificationDestination2()
{
return $this->identificationDestination2;
}
/**
* Set identificationDestination2 value
* @param string $identificationDestination2
* @return \ColissimoPostage\StructType\ZoneInfosRoutage
*/
public function setIdentificationDestination2($identificationDestination2 = null)
{
// validation for constraint: string
if (!is_null($identificationDestination2) && !is_string($identificationDestination2)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($identificationDestination2)), __LINE__);
}
$this->identificationDestination2 = $identificationDestination2;
return $this;
}
/**
* Get MSort value
* @return string|null
*/
public function getMSort()
{
return $this->MSort;
}
/**
* Set MSort value
* @param string $mSort
* @return \ColissimoPostage\StructType\ZoneInfosRoutage
*/
public function setMSort($mSort = null)
{
// validation for constraint: string
if (!is_null($mSort) && !is_string($mSort)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($mSort)), __LINE__);
}
$this->MSort = $mSort;
return $this;
}
/**
* Get numberVersionWS value
* @return string|null
*/
public function getNumberVersionWS()
{
return $this->numberVersionWS;
}
/**
* Set numberVersionWS value
* @param string $numberVersionWS
* @return \ColissimoPostage\StructType\ZoneInfosRoutage
*/
public function setNumberVersionWS($numberVersionWS = null)
{
// validation for constraint: string
if (!is_null($numberVersionWS) && !is_string($numberVersionWS)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($numberVersionWS)), __LINE__);
}
$this->numberVersionWS = $numberVersionWS;
return $this;
}
/**
* Get routingVersion value
* @return string|null
*/
public function getRoutingVersion()
{
return $this->routingVersion;
}
/**
* Set routingVersion value
* @param string $routingVersion
* @return \ColissimoPostage\StructType\ZoneInfosRoutage
*/
public function setRoutingVersion($routingVersion = null)
{
// validation for constraint: string
if (!is_null($routingVersion) && !is_string($routingVersion)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($routingVersion)), __LINE__);
}
$this->routingVersion = $routingVersion;
return $this;
}
/**
* Get serviceMark value
* @return string|null
*/
public function getServiceMark()
{
return $this->serviceMark;
}
/**
* Set serviceMark value
* @param string $serviceMark
* @return \ColissimoPostage\StructType\ZoneInfosRoutage
*/
public function setServiceMark($serviceMark = null)
{
// validation for constraint: string
if (!is_null($serviceMark) && !is_string($serviceMark)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($serviceMark)), __LINE__);
}
$this->serviceMark = $serviceMark;
return $this;
}
/**
* Get sortDest value
* @return string|null
*/
public function getSortDest()
{
return $this->sortDest;
}
/**
* Set sortDest value
* @param string $sortDest
* @return \ColissimoPostage\StructType\ZoneInfosRoutage
*/
public function setSortDest($sortDest = null)
{
// validation for constraint: string
if (!is_null($sortDest) && !is_string($sortDest)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($sortDest)), __LINE__);
}
$this->sortDest = $sortDest;
return $this;
}
/**
* Get sortOrigin value
* @return string|null
*/
public function getSortOrigin()
{
return $this->sortOrigin;
}
/**
* Set sortOrigin value
* @param string $sortOrigin
* @return \ColissimoPostage\StructType\ZoneInfosRoutage
*/
public function setSortOrigin($sortOrigin = null)
{
// validation for constraint: string
if (!is_null($sortOrigin) && !is_string($sortOrigin)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($sortOrigin)), __LINE__);
}
$this->sortOrigin = $sortOrigin;
return $this;
}
/**
* Get trackingNumberRouting value
* @return string|null
*/
public function getTrackingNumberRouting()
{
return $this->trackingNumberRouting;
}
/**
* Set trackingNumberRouting value
* @param string $trackingNumberRouting
* @return \ColissimoPostage\StructType\ZoneInfosRoutage
*/
public function setTrackingNumberRouting($trackingNumberRouting = null)
{
// validation for constraint: string
if (!is_null($trackingNumberRouting) && !is_string($trackingNumberRouting)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($trackingNumberRouting)), __LINE__);
}
$this->trackingNumberRouting = $trackingNumberRouting;
return $this;
}
/**
* Get typeServiceLivraison value
* @return string|null
*/
public function getTypeServiceLivraison()
{
return $this->typeServiceLivraison;
}
/**
* Set typeServiceLivraison value
* @param string $typeServiceLivraison
* @return \ColissimoPostage\StructType\ZoneInfosRoutage
*/
public function setTypeServiceLivraison($typeServiceLivraison = null)
{
// validation for constraint: string
if (!is_null($typeServiceLivraison) && !is_string($typeServiceLivraison)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($typeServiceLivraison)), __LINE__);
}
$this->typeServiceLivraison = $typeServiceLivraison;
return $this;
}
/**
* Get rDepot value
* @return string|null
*/
public function getRDepot()
{
return $this->rDepot;
}
/**
* Set rDepot value
* @param string $rDepot
* @return \ColissimoPostage\StructType\ZoneInfosRoutage
*/
public function setRDepot($rDepot = null)
{
// validation for constraint: string
if (!is_null($rDepot) && !is_string($rDepot)) {
throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($rDepot)), __LINE__);
}
$this->rDepot = $rDepot;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\ZoneInfosRoutage
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,97 @@
<?php
namespace ColissimoPostage\StructType;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for zoneRouting StructType
* @subpackage Structs
* @author WsdlToPhp <contact@wsdltophp.com>
*/
class ZoneRouting extends AbstractStructBase
{
/**
* The zoneCABRoutage
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var \ColissimoPostage\StructType\ZoneCABRoutage
*/
public $zoneCABRoutage;
/**
* The zoneInfosRoutage
* Meta informations extracted from the WSDL
* - minOccurs: 0
* @var \ColissimoPostage\StructType\ZoneInfosRoutage
*/
public $zoneInfosRoutage;
/**
* Constructor method for zoneRouting
* @uses ZoneRouting::setZoneCABRoutage()
* @uses ZoneRouting::setZoneInfosRoutage()
* @param \ColissimoPostage\StructType\ZoneCABRoutage $zoneCABRoutage
* @param \ColissimoPostage\StructType\ZoneInfosRoutage $zoneInfosRoutage
*/
public function __construct(\ColissimoPostage\StructType\ZoneCABRoutage $zoneCABRoutage = null, \ColissimoPostage\StructType\ZoneInfosRoutage $zoneInfosRoutage = null)
{
$this
->setZoneCABRoutage($zoneCABRoutage)
->setZoneInfosRoutage($zoneInfosRoutage);
}
/**
* Get zoneCABRoutage value
* @return \ColissimoPostage\StructType\ZoneCABRoutage|null
*/
public function getZoneCABRoutage()
{
return $this->zoneCABRoutage;
}
/**
* Set zoneCABRoutage value
* @param \ColissimoPostage\StructType\ZoneCABRoutage $zoneCABRoutage
* @return \ColissimoPostage\StructType\ZoneRouting
*/
public function setZoneCABRoutage(\ColissimoPostage\StructType\ZoneCABRoutage $zoneCABRoutage = null)
{
$this->zoneCABRoutage = $zoneCABRoutage;
return $this;
}
/**
* Get zoneInfosRoutage value
* @return \ColissimoPostage\StructType\ZoneInfosRoutage|null
*/
public function getZoneInfosRoutage()
{
return $this->zoneInfosRoutage;
}
/**
* Set zoneInfosRoutage value
* @param \ColissimoPostage\StructType\ZoneInfosRoutage $zoneInfosRoutage
* @return \ColissimoPostage\StructType\ZoneRouting
*/
public function setZoneInfosRoutage(\ColissimoPostage\StructType\ZoneInfosRoutage $zoneInfosRoutage = null)
{
$this->zoneInfosRoutage = $zoneInfosRoutage;
return $this;
}
/**
* Method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @see AbstractStructBase::__set_state()
* @uses AbstractStructBase::__set_state()
* @param array $array the exported values
* @return \ColissimoPostage\StructType\ZoneRouting
*/
public static function __set_state(array $array)
{
return parent::__set_state($array);
}
/**
* Method returning the class name
* @return string __CLASS__
*/
public function __toString()
{
return __CLASS__;
}
}

View File

@@ -0,0 +1,95 @@
<?php
/**
* This file aims to show you how to use this generated package.
* In addition, the goal is to show which methods are available and the fist needed parameter(s)
* You have to use an associative array such as:
* - the key must be a constant beginning with WSDL_ from AbstractSoapClientbase class each generated ServiceType class extends this class
* - the value must be the corresponding key value (each option matches a {@link http://www.php.net/manual/en/soapclient.soapclient.php} option)
* $options = array(
* \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_URL => 'https://ws.colissimo.fr/sls-ws/SlsServiceWS?wsdl',
* \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_TRACE => true,
* \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_LOGIN => 'you_secret_login',
* \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_PASSWORD => 'you_secret_password',
* );
* etc....
*/
require_once __DIR__ . '/vendor/autoload.php';
/**
* Minimal options
*/
$options = array(
\WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_URL => 'https://ws.colissimo.fr/sls-ws/SlsServiceWS?wsdl',
\WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_CLASSMAP => \ColissimoPostage\ClassMap::get(),
);
/**
* Samples for Check ServiceType
*/
$check = new \ColissimoPostage\ServiceType\Check($options);
/**
* Sample call for checkGenerateLabel operation/method
*/
if ($check->checkGenerateLabel(new \ColissimoPostage\StructType\CheckGenerateLabel()) !== false) {
print_r($check->getResult());
} else {
print_r($check->getLastError());
}
/**
* Samples for Generate ServiceType
*/
$generate = new \ColissimoPostage\ServiceType\Generate($options);
/**
* Sample call for generateLabel operation/method
*/
if ($generate->generateLabel(new \ColissimoPostage\StructType\GenerateLabel()) !== false) {
print_r($generate->getResult());
} else {
print_r($generate->getLastError());
}
/**
* Sample call for generateBordereauByParcelsNumbers operation/method
*/
if ($generate->generateBordereauByParcelsNumbers(new \ColissimoPostage\StructType\GenerateBordereauByParcelsNumbers()) !== false) {
print_r($generate->getResult());
} else {
print_r($generate->getLastError());
}
/**
* Samples for Get ServiceType
*/
$get = new \ColissimoPostage\ServiceType\Get($options);
/**
* Sample call for getBordereauByNumber operation/method
*/
if ($get->getBordereauByNumber(new \ColissimoPostage\StructType\GetBordereauByNumber()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for getListMailBoxPickingDates operation/method
*/
if ($get->getListMailBoxPickingDates(new \ColissimoPostage\StructType\GetListMailBoxPickingDates()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for getProductInter operation/method
*/
if ($get->getProductInter(new \ColissimoPostage\StructType\GetProductInter()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Samples for Plan ServiceType
*/
$plan = new \ColissimoPostage\ServiceType\Plan($options);
/**
* Sample call for planPickup operation/method
*/
if ($plan->planPickup(new \ColissimoPostage\StructType\PlanPickup()) !== false) {
print_r($plan->getResult());
} else {
print_r($plan->getLastError());
}

View File

@@ -0,0 +1,10 @@
FROM php:7.2-apache
RUN apt-get update \
&& apt-get install -y libxml2-dev git zip zlib1g \
&& docker-php-ext-install soap
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
COPY . /var/www/html
WORKDIR /var/www/html

View File

@@ -0,0 +1,12 @@
# For more information about the properties used in
# this file, please see the EditorConfig documentation:
# http://editorconfig.org/
root = true
[*]
end_of_line = lf
[*.php]
indent_style = space
indent_size = 4

View File

@@ -0,0 +1,4 @@
vendor/
composer.lock
phpunit.xml

21
core/vendor/wsdltophp/packagebase/.php_cs vendored Executable file
View File

@@ -0,0 +1,21 @@
<?php
$finder = PhpCsFixer\Finder::create()
->exclude('vendor')
->exclude('tests')
->in(__DIR__);
return PhpCsFixer\Config::create()
->setUsingCache(false)
->setRules(array(
'@PSR2' => true,
'array_syntax' => [
'syntax' => 'short',
],
'binary_operator_spaces' => true,
'no_whitespace_in_blank_line' => true,
'ternary_operator_spaces' => true,
'cast_spaces' => true,
'trailing_comma_in_multiline_array' => true
))
->setFinder($finder);

View File

@@ -0,0 +1,23 @@
language: php
sudo: false
matrix:
include:
- php: 5.4
- php: 5.5
- php: 5.6
- php: 7.0
- php: 7.1
- php: 7.2
install:
- composer install
script:
- ./vendor/phpunit/phpunit/phpunit --coverage-text --coverage-clover=coverage.clover
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover

View File

@@ -0,0 +1,69 @@
# CHANGELOG
## 1.0.14
- Issue #25 - Enhancement: Improve output from running php-cs-fixer
- Issue #26 - Enhancement: Keep packages sorted in composer.json
- Issue #28 - Add the URI as an option in the soapClient parameters
## 1.0.13
- Issue #22 / Pull request #23 - Add support to invoke getLastRequest without throwing an InvalidArgumentException if the request is not executed
## 1.0.12
- Issue #19 - WSDL_CACHE_WSDL does not work!
- Code reviewed as it was not complete, default options were not taken into account properly too, it's working right from now on!
## 1.0.11
- Issue #19 - WSDL_CACHE_WSDL does not work!
- Merged pull request #20 - Fix WSDL_CACHE_WSDL not working
## 1.0.10
- Issue #10 - Improve AbstractStructArrayBase class
- Issue #13 - Feature request: AbstractStructBase implement JsonSerializable
- Add Code of Conduct and Contributing files
## 1.0.9
- Improve code, remove @ usage in generic __set_State method, add SensioLabs Insight badge
## 1.0.8
- Issue #7 - Missing SoapClient location option
## 1.0.7
- Issue #3 - More than one SoapClient in Project
## 1.0.6
- Pull request #4: Rename $optioName to $optionName
## 1.0.5
- Update readme
## 1.0.4
- Issue #2 - Var name change request from $methoName to $methodName
## 1.0.3
- Add utility methods **getStreamContext()** and **getStreamContextOptions()** to AbstractSoapClientbase class
## 1.0.2
- Remove AbstractStructArrayBase::getAttributeName() method due to fatal error on PHP <= 5.3
## 1.0.1
- Interfaces' methods has been well declared as public
- Minor readme typo updates
## 1.0.0
- First major release, code coverage improved to reach 100% from the 1.0.0RC02 release.
## 1.0.0RC02
- Major: update source code structure, put all classes under ```src``` folder, rename Tests to tests, update composer and phpunit accordingly
## 1.0.0RC01
- Update Readme
- Define interfaces that must be used as interfaces in order to be able to define a usable top class for any generated ServiceType/StructType/ArrayType class by the [PackageGenerator](https://github.com/WsdlToPhp/PackageGenerator)
## 0.0.3
- Update dependency badge
## 0.0.2
- use top level namespace for SoapHeader class
## 0.0.1
- Initial version

View File

@@ -0,0 +1,46 @@
# Contributor Covenant Code of Conduct
## Our Pledge
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
## Our Standards
Examples of behavior that contributes to creating a positive environment include:
* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members
Examples of unacceptable behavior by participants include:
* The use of sexualized language or imagery and unwelcome sexual attention or advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a professional setting
## Our Responsibilities
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
## Scope
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at contact@wsdltophp.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
## Attribution
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
[homepage]: http://contributor-covenant.org
[version]: http://contributor-covenant.org/version/1/4/

View File

@@ -0,0 +1,28 @@
# Contributing
Contributions are **welcome** and will be fully **credited**.
We accept contributions via pull requests on [Github].
Please make all pull requests to the `develop` branch, not the `master` branch.
## Pull Requests
- **Create an issue** - Explain as detailed as possible the issue you encountered so we can understand the context of your pull request
- **[Symfony Coding Standard]** - The easiest way to apply the conventions is to run `composer lint`
- **Add tests!** - Your patch won't be accepted if it doesn't have tests.
- **Document any change in behaviour** - Make sure the `README.md` and any other relevant documentation are kept up-to-date.
- **Consider our release cycle** - We try to follow [SemVer v2.0.0](http://semver.org/). Randomly breaking public APIs is not an option.
- **Create feature branches** - Don't ask us to pull from your master branch.
- **One pull request per feature** - If you want to do more than one thing, send multiple pull requests.
- **Send coherent history** - Make sure each individual commit in your pull request is meaningful. If you had to make multiple intermediate commits while developing, please squash them before submitting.
## Running Tests
``` bash
$ composer test
```
**Happy coding**!
[Github]: https://github.com/wsdltophp/packagebase
[Symfony Coding Standard]: http://symfony.com/doc/current/contributing/code/standards.html

View File

@@ -0,0 +1,19 @@
Copyright (c) 2012-2015 Mikaël DELSOL
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

View File

@@ -0,0 +1,292 @@
# Package Base
> Classes that are used by the classes generated by the [PackageGenerator](https://github.com/WsdlToPhp/PackageGenerator) project to ease the SoapClient UX.
[![Latest Stable Version](https://poser.pugx.org/wsdltophp/packagebase/version.png)](https://packagist.org/packages/wsdltophp/packagebase)
[![Total Downloads](https://poser.pugx.org/wsdltophp/packagebase/downloads)](https://packagist.org/packages/wsdltophp/packagebase)
[![Build Status](https://api.travis-ci.org/WsdlToPhp/PackageBase.svg)](https://travis-ci.org/WsdlToPhp/PackageBase)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/WsdlToPhp/PackageBase/badges/quality-score.png)](https://scrutinizer-ci.com/g/WsdlToPhp/PackageBase/)
[![Code Coverage](https://scrutinizer-ci.com/g/WsdlToPhp/PackageBase/badges/coverage.png)](https://scrutinizer-ci.com/g/WsdlToPhp/PackageBase/)
[![StyleCI](https://styleci.io/repos/38760239/shield)](https://styleci.io/repos/38760239)
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/bfbc0c8f-5793-489b-8151-36ea149ec98d/mini.png)](https://insight.sensiolabs.com/projects/bfbc0c8f-5793-489b-8151-36ea149ec98d)
The goal is to provide generic and useful classes that are on top of the classes generated by the [PackageGenerator](https://github.com/WsdlToPhp/PackageGenerator) project.
For example, it allows to easily loop through the array elements of a SOAP result object property, it allows to easily set HTTP and SOAP headers for a SOAP request and it allows to easily populate an object from its array state representation.
## Main features
- [Interfaces](#the-interfaces)
- [StructInterface](#structinterface)
- [StructArrayInterface](#structarrayinterface)
- [SoapClientInterface](#soapclientinterface)
- [Abstract classes](#the-abstract-classes)
- [AbstractStructBase](#abstractstructbase)
- [AbstractStructArrayBase](#abstractstructarraybase)
- [AbstractSoapClientBase](#abstractsoapclientbase)
## The interfaces
The defined interfaces must be used in order to be able to match the requirements for the [PackageGenerator](https://github.com/WsdlToPhp/PackageGenerator) generated classes.
### StructInterface
#### Description
This interface must be used to define a new StructType class.
#### What has to be implemented?
There is at least/most one method that must be implemented so it's pretty fast to implement it even if you don't see the goal of it:
- **__set_state**: [__set_state](http://php.net/manual/en/language.oop5.magic.php#object.set-state) is useful when you want want to load an object that you stored as a string using [var_export](http://php.net/manual/en/function.var-export.php).
**If you do not want to implement this method, you can too create your own class that inherits from our [AbstractStructBase](#abstractstructbase) class.**
### StructArrayInterface
#### Description
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
#### What has to be implemented?
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.
So, basically, you MUST at least override the methods declared by the PHP interfaces from which this interface inherits
**If you do not want to implement all the methods, you can too create your own class that inherits from our [AbstractStructArrayBase](#abstractstructarraybase) class.**
### SoapClientInterface
#### Description
This interface must be used to define a new [SoapClient](http://php.net/manual/en/class.soapclient.php) base class for any ```ServiceType``` class generated by [PackageGenerator](https://github.com/WsdlToPhp/PackageGenerator).
#### Options
Here are the constants/options defined by this interface and their utility:
- **DEFAULT_SOAP_CLIENT_CLASS = '\SoapClient'**: this is the default [SoapClient](http://php.net/manual/en/class.soapclient.php) class that is used to send the request. Feel free to override it if you want to use another [SoapClient](http://php.net/manual/en/class.soapclient.php) class
- **OPTION_PREFIX**: this is the prefix used for any constant's option name
- **WSDL_URL**: option index used to pass the WSDL url
- **WSDL_URI**: option index used to pass the target namespace of the SOAP service (required for non-WSDL-mode with with the `location`)
- **WSDL_USE**: option index used to pass non-WSDL-mode option use
- **WSDL_STYLE**: option index used to pass non-WSDL-mode option style
- **WSDL_CLASSMAP**: the classmap's array
- **WSDL_LOGIN**: the basic authentication's login
- **WSDL_PASSWORD**: the basic authentication's password
- **WSDL_TRACE**: tracing of request so faults can be backtraced. This defaults to ```true```
- **WSDL_EXCEPTIONS**: boolean value defining whether soap errors throw exceptions of type SoapFault
- **WSDL_CACHE_WSDL**: option is one of ```WSDL_CACHE_NONE```, ```WSDL_CACHE_DISK```, ```WSDL_CACHE_MEMORY``` or ```WSDL_CACHE_BOTH```
- **WSDL_STREAM_CONTEXT**: a [resource](http://php.net/manual/en/language.types.resource.php) for [context](http://php.net/manual/en/context.php)
- **WSDL_SOAP_VERSION**: one of either ```SOAP_1_1``` or ```SOAP_1_2``` to select SOAP 1.1 or 1.2, respectively. If omitted, SOAP 1.1 is used
- **WSDL_COMPRESSION**: allows to use compression of HTTP SOAP requests and responses
- **WSDL_ENCODING**: internal character encoding. This option does not change the encoding of SOAP requests (it is always utf-8), but converts strings into it
- **WSDL_CONNECTION_TIMEOUT**: defines a timeout in seconds for the connection to the SOAP service. This option does not define a timeout for services with slow responses. To limit the time to wait for calls to finish the [default_socket_timeout](http://php.net/manual/en/filesystem.configuration.php#ini.default-socket-timeout) setting is available
- **WSDL_TYPEMAP**: array of type mappings. Type mapping is an array with keys type_name, type_ns (namespace URI), from_xml (callback accepting one string parameter) and to_xml (callback accepting one object parameter)
- **WSDL_USER_AGENT**: specifies string to use in User-Agent header
- **WSDL_FEATURES**: a bitmask of ```SOAP_SINGLE_ELEMENT_ARRAYS```, ```SOAP_USE_XSI_ARRAY_TYPE```, ```SOAP_WAIT_ONE_WAY_CALLS```
- **WSDL_KEEP_ALIVE**: a boolean value defining whether to send the Connection: Keep-Alive header or Connection: close
- **WSDL_PROXY_HOST**: your pxoxy hostname
- **WSDL_PROXY_PORT**: your proxy port
- **WSDL_PROXY_LOGIN**: your proxy login
- **WSDL_PROXY_PASSWORD**: your proxy password
- **WSDL_LOCAL_CERT**: your local certificate content (as a string)
- **WSDL_PASSPHRASE**: your local passphrase content (as a string)
- **WSDL_AUTHENTICATION**: authentication method may be either ```SOAP_AUTHENTICATION_BASIC``` (default) or ```SOAP_AUTHENTICATION_DIGEST```
- **WSDL_SSL_METHOD**: one of ```SOAP_SSL_METHOD_TLS```, ```SOAP_SSL_METHOD_SSLv2```, ```SOAP_SSL_METHOD_SSLv3``` or ```SOAP_SSL_METHOD_SSLv23```
#### What has to be implemented?
Here are the methods that must be implemented and why:
- **__construct(array $wsdlOptions = array(), $resetSoapClient = true)**: the constructor must be able to handl one of the listed constants above
- **getSoapClient()**: must return the [SoapClient](http://php.net/manual/en/class.soapclient.php) object that is responsible fo sending the requests.
- **setSoapHeader($nameSpace, $name, $data, $mustUnderstand = false, $actor = null)**: look to [AbstractSoapClientBase](#abstractsoapclientbase) part that details this method. Basically, it allows to define [SoapHeader](http://php.net/manual/en/class.soapheader.php)s for the request
- **getLastError()**: must return the last error, its format is up to you
- **saveLastError($methodName, \SoapFault $soapFault)**: look to [AbstractSoapClientBase](#abstractsoapclientbase) part that details this method. Basically, it must allow to store a catched [Soapfault](http://php.net/manual/en/class.soapfault.php) object when a request has failed
- **getResult()**: should return the Soap Web Service response, it's up to you
- **setResult($result)**: must accept any parameter type as it should received the Soap Web Service response
**If you do not want to implement all these methods, you can too create your own class that inherits from our [AbstractSoapClientBase](#abstractsoapclientbase) class.**
## The abstract classes
### AbstractStructBase
#### Description
This class is the base class for any ```StructType``` class generated by [PackageGenerator](https://github.com/WsdlToPhp/PackageGenerator). It implements our [StructInterface](#structinterface) interface.
It defines four methods:
- **__set_state($array)**: Useful when you load the string representation of an object that you stored using ```var_export```. It also allows you to ease the instanciation of an object that contains many properties which would be hard to instanciate using the ```__construct``` method. You can see ```__set_state``` as an hydratation method.
- **_set($name, $value)**: As magic method ```__set``` but used by the ```__set_state``` method. Plus, defining ```__set``` method on used class by the classmap option for the [SoapClient](http://php.net/manual/en/class.soapclient.php) breaks the correct hydratation of your received objects.
- **_get($name)**: As magic method ```__get```. Used by our [AbstractStructArrayBase](#abstractstructarraybase) class.
- **jsonSerialize()**: by implementing the [\JsonSerializable](http://php.net/manual/en/class.jsonserializable.php) interface, it implements this method that allows to pass the object to the [json_encode](http://php.net/manual/en/function.json-encode.php) method so it will return the properties of the current object in an array.
#### Usage
```php
$item = \Api\StructType\Item::__set_state(array(
'id' => 1,
'name' => 'Entity #1',
'label' => 'Entity #1',
'_href' => 'http://www.entity.com',
));
// $item is now an \Api\StructType\Item object
```
### AbstractStructArrayBase
#### Description
This class is the base class for any ```ArrayType``` class generated by [PackageGenerator](https://github.com/WsdlToPhp/PackageGenerator). It implements our [StructArrayInterface](#structarrayinterface) interface.
#### Usage
As soon as you have an element that is an array of items such as:
```php
$items = \Api\ArrayType\Items::__set_state(array(
'items' => array(
\Api\StructType\Item::__set_state(array(
'id' => 1,
'name' => 'Entity #1',
'label' => 'Entity #1',
'_href' => 'http://www.entity-1.com',
),
\Api\StructType\Item::__set_state(array(
'id' => 2,
'name' => 'Entity #2',
'label' => 'Entity #2',
'_href' => 'http://www.entity-2.com',
),
\Api\StructType\Item::__set_state(array(
'id' => 3,
'name' => 'Entity #3',
'label' => 'Entity #3',
'_href' => 'http://www.entity-3.com',
),
)
));
// 'items' is the unique property of the object
// Its name is returned by the getAttributeName method
// defined in the generated \Api\ArrayType\Items class
```
- **You MUST call first** ```initInternArray``` method on your ArrayType object otherwise you'll get nothing working for the implemented methods:
```php
$items->initInternArray();
```
- then you can call ```count```, ```length``` methods: gives you the number of items contained by your object
- you can iterate through the items:
```php
foreach ($items as $item) {
// $items->current() and $item is an \Api\StructType\Item object
// $items->key() is the current index
}
```
- you can get the first item:
```php
$items->first();
```
- you can get the last item:
```php
$items->last();
```
- you can get any item:
```php
$items->item($index);
```
- you can add a new item:
```php
$items->add(\Api\StructType\Item::__set_state(array(
'id' => 4,
'name' => 'Entity #4',
'label' => 'Entity #4',
'_href' => 'http://www.entity-4.com',
)));
```
- you can even reset the items:
```php
$items->initInternArray(array(
\Api\StructType\Item::__set_state(array(
'id' => 0,
'name' => 'Entity #0',
'label' => 'Entity #0',
'_href' => 'http://www.entity-0.com',
),
\Api\StructType\Item::__set_state(array(
'id' => 1,
'name' => 'Entity #1',
'label' => 'Entity #1',
'_href' => 'http://www.entity-1.com',
),
\Api\StructType\Item::__set_state(array(
'id' => 2,
'name' => 'Entity #2',
'label' => 'Entity #2',
'_href' => 'http://www.entity-2.com',
),
));
```
### AbstractSoapClientBase
#### Description
This class is the base class for any ```ServiceType``` class generated by [PackageGenerator](https://github.com/WsdlToPhp/PackageGenerator).
Its goal is to provide utility/handful methods by implementing our [SoapClientInterface](#soapclientinterface) interface.
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.
#### Usage
Let's say you have this type of generate ```ServiceType``` class:
```php
namespace Api\ServiceType;
use \WsdlToPhp\PackageBase\AbstractSoapClientBase;
class ApiUpdate extends AbstractSoapClientBase
{
public function UpdateBulkOrder(\Api\StructType\ApiUpdateBulkOrder $parameters)
{
try {
$this->setResult(self::getSoapClient()->UpdateBulkOrder($parameters));
return $this->getResult();
} catch (\SoapFault $soapFault) {
$this->saveLastError(__METHOD__, $soapFault);
return false;
}
}
}
```
You can do:
```php
use \WsdlToPhp\PackageBase\AbstractSoapClientBase;
$options = array(
AbstractSoapClientBase::WSDL_URL => '__WSDL_URL__',
AbstractSoapClientBase::WSDL_CLASSMAP => \Api\ApiClassMap::classMap(),
);
// sets the first instance of SoapClient within AbstractSoapClientBase
$update = new \Api\ServiceType\ApiUpdate($options);
// resets the SoapClient instance
$update = new \Api\ServiceType\ApiUpdate($options, true);
```
Then call any of these base methods:
- **getResult**: return the actual response as an object. The object's class should be a generated class
- **getLastRequest($asDomDocument = false)**: returns either the XML string version or the ```DOMDocument``` version of the request
- **getLastResponse($asDomDocument = false)**: returns either the XML string version or the ```DOMDocument``` version of the response
- **getLastRequestHeaders($asArray = false)**: returns either the HTTP request's headers as a string or as an array (each HTTP header is parsed)
- **getLastResponseHeaders($asArray = false)**: returns either the HTTP response's headers as a string or as an array
- **getLastError**: automatically populated with an error when ```$this->saveLastError(__METHOD__, $soapFault)``` is called
- **getLastErrorForMethod($methodName)** : returns the error associated to the called method. It should return a ```SoapFault``` object
```php
$result = $update->UpdateBulkOrder(new \Api\StructType\ApiUpdateBulkOrder())
if ($result !== false) {
echo "\nThis is the result as an object:" . print_r($update->getResult(), true);
// Actually $result is the same data than $update->getResult()
} else {
echo "\nThis is the XML request:" . $update->getLastRequest(false);
echo "\nThese are the request's headers:" . $update->getLastRequestHeaders(false);
echo "\nThis is the XML response:" . $update->getLastResponse(false);
echo "\nThese are the response's headers:" . $update->getLastResponseHeaders(false);
echo "\nThese are the last errors:" . print_r($update->getLastError(), true);
echo "\nThis is the current error:" . print_r($update->getLastErrorForMethod('\Api\ServiceType\ApiUpdate::UpdateBulkOrder'), true);
}
```
You have additional methods such as:
- **setSoapHeader($nameSpace, $name, $data, $mustUnderstand = false, $actor = null)**: it provides a way to redefine SoapHeaders
```php
// A sample of its usage in the generated ServiceType class
public function setSoapHeaderCSPCHD(\Api\StructType\ApiCSPCHD $cSPCHD, $nameSpace = 'http://tempuri.org', $mustUnderstand = false, $actor = null)
{
return $this->setSoapHeader($nameSpace, 'CSPCHD', $cSPCHD, $mustUnderstand, $actor);
}
```
- **setHttpHeader($headerName, $headerValue)**: an easy way to define your proper HTTP headers that must be sent
- **setLocation($location)**: Sets the location of the Web service to use
- **getStreamContext()**: Returns the created stream context used by the SoapClient class
- **getStreamContextOptions()**: Returns the created stream context's options used by the SoapClient class
## Need improvements for these classes?
Feel free to make some pull requests. We'll study them and let you know when it can be integrated.
## Unit tests
You can run the unit tests with the following command:
```
$ cd /path/to/src/WsdlToPhp/PackageBase/
$ composer install
$ composer test
```

View File

@@ -0,0 +1,62 @@
{
"name": "wsdltophp/packagebase",
"description": "Contains the base classes to be used by classes generated by wsdltophp/packagegenerator",
"type": "library",
"keywords" : ["php","models"],
"homepage" : "https://github.com/WsdlToPhp/PackageBase",
"license" : "MIT",
"authors" : [
{
"name": "Mikaël DELSOL",
"email": "contact@wsdltophp.com",
"role": "Owner"
},
{
"name": "Luke Rodgers",
"email": "lukerodgers90@gmail.com",
"role": "Contributor"
},
{
"name": "Arthur Moore",
"email": "github@cd-net.net",
"role": "Contributor"
},
{
"name": "Necati Yared Ozal",
"email": "mail@necatiozal.com",
"role": "Contributor"
},
{
"name": "Gemorroj",
"email": "wapinet@mail.ru",
"role": "Contributor"
},
{
"name": "hordijk",
"role": "Contributor"
}
],
"support" : {
"email" : "contact@wsdltophp.com"
},
"require": {
"php" : ">=5.4"
},
"scripts": {
"test": "vendor/bin/phpunit",
"lint": "vendor/bin/php-cs-fixer fix --ansi --diff --verbose"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "~2.0",
"phpunit/phpunit": "^4.8 || ^6.0"
},
"autoload": {
"psr-4": {
"WsdlToPhp\\PackageBase\\": "src",
"WsdlToPhp\\PackageBase\\Tests\\": "tests"
}
},
"config": {
"sort-packages": true
}
}

View File

@@ -0,0 +1,10 @@
version: '3.4'
services:
php:
build:
context: .
dockerfile: .docker/Dockerfile
volumes:
- .:/var/www/html:rw
container_name: package_base

View File

@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.1/phpunit.xsd"
backupGlobals="false"
colors="true"
bootstrap="vendor/autoload.php">
<php>
<ini name="error_reporting" value="-1" />
</php>
<testsuite name="Test Suite">
<directory>./tests/</directory>
</testsuite>
<filter>
<whitelist>
<directory>./</directory>
<exclude>
<directory>./tests</directory>
<directory>./vendor</directory>
</exclude>
</whitelist>
</filter>
</phpunit>

View File

@@ -0,0 +1,482 @@
<?php
namespace WsdlToPhp\PackageBase;
abstract class AbstractSoapClientBase implements SoapClientInterface
{
/**
* Soapclient called to communicate with the actual SOAP Service
* @var \SoapClient
*/
private static $soapClient;
/**
* Contains Soap call result
* @var mixed
*/
private $result;
/**
* Contains last errors
* @var array
*/
private $lastError;
/**
* Constructor
* @uses AbstractSoapClientBase::setLastError()
* @uses AbstractSoapClientBase::initSoapClient()
* @param array $wsdlOptions
* @param bool $resetSoapClient allows to disable the SoapClient redefinition
*/
public function __construct(array $wsdlOptions = [], $resetSoapClient = true)
{
$this->setLastError([]);
/**
* Init soap Client
* Set default values
*/
if ($resetSoapClient) {
$this->initSoapClient($wsdlOptions);
}
}
/**
* Static method getting current SoapClient
* @return \SoapClient
*/
public static function getSoapClient()
{
return self::$soapClient;
}
/**
* Static method setting current SoapClient
* @param \SoapClient $soapClient
* @return \SoapClient
*/
public static function setSoapClient(\SoapClient $soapClient)
{
return (self::$soapClient = $soapClient);
}
/**
* Method initiating SoapClient
* @uses ApiClassMap::classMap()
* @uses AbstractSoapClientBase::getDefaultWsdlOptions()
* @uses AbstractSoapClientBase::getSoapClientClassName()
* @uses AbstractSoapClientBase::setSoapClient()
* @uses AbstractSoapClientBase::OPTION_PREFIX
* @param array $options WSDL options
* @return void
*/
public function initSoapClient(array $options)
{
self::$soapClient = null;
$wsdlOptions = [];
$defaultWsdlOptions = static::getDefaultWsdlOptions();
foreach ($defaultWsdlOptions as $optionName => $optionValue) {
if (array_key_exists($optionName, $options) && !is_null($options[$optionName])) {
$wsdlOptions[str_replace(self::OPTION_PREFIX, '', $optionName)] = $options[$optionName];
} elseif (!is_null($optionValue)) {
$wsdlOptions[str_replace(self::OPTION_PREFIX, '', $optionName)] = $optionValue;
}
}
if (self::canInstantiateSoapClientWithOptions($wsdlOptions)) {
$wsdlUrl = null;
if (array_key_exists(str_replace(self::OPTION_PREFIX, '', self::WSDL_URL), $wsdlOptions)) {
$wsdlUrl = $wsdlOptions[str_replace(self::OPTION_PREFIX, '', self::WSDL_URL)];
unset($wsdlOptions[str_replace(self::OPTION_PREFIX, '', self::WSDL_URL)]);
}
$soapClientClassName = $this->getSoapClientClassName();
static::setSoapClient(new $soapClientClassName($wsdlUrl, $wsdlOptions));
}
}
/**
* Checks if the provided options are sufficient to instantiate a SoapClient:
* - WSDL-mode : only the WSDL is required
* - non-WSDL-mode : URI and LOCATION are required, WSDL url can be empty then
* @uses AbstractSoapClientBase::OPTION_PREFIX
* @param $wsdlOptions
* @return bool
*/
protected static function canInstantiateSoapClientWithOptions($wsdlOptions)
{
return (
array_key_exists(str_replace(self::OPTION_PREFIX, '', self::WSDL_URL), $wsdlOptions) ||
(
array_key_exists(str_replace(self::OPTION_PREFIX, '', self::WSDL_URI), $wsdlOptions) &&
array_key_exists(str_replace(self::OPTION_PREFIX, '', self::WSDL_LOCATION), $wsdlOptions)
)
);
}
/**
* Returns the SoapClient class name to use to create the instance of the SoapClient.
* The SoapClient class is determined based on the package name.
* If a class is named as {Api}SoapClient, then this is the class that will be used.
* Be sure that this class inherits from the native PHP SoapClient class and this class has been loaded or can be loaded.
* The goal is to allow the override of the SoapClient without having to modify this generated class.
* Then the overridding SoapClient class can override for example the SoapClient::__doRequest() method if it is needed.
* @uses AbstractSoapClientBase::DEFAULT_SOAP_CLIENT_CLASS
* @return string
*/
public function getSoapClientClassName($soapClientClassName = null)
{
$className = self::DEFAULT_SOAP_CLIENT_CLASS;
if (!empty($soapClientClassName) && is_subclass_of($soapClientClassName, '\SoapClient')) {
$className = $soapClientClassName;
}
return $className;
}
/**
* Method returning all default options values
* @uses AbstractSoapClientBase::WSDL_AUTHENTICATION
* @uses AbstractSoapClientBase::WSDL_CACHE_WSDL
* @uses AbstractSoapClientBase::WSDL_CLASSMAP
* @uses AbstractSoapClientBase::WSDL_COMPRESSION
* @uses AbstractSoapClientBase::WSDL_CONNECTION_TIMEOUT
* @uses AbstractSoapClientBase::WSDL_ENCODING
* @uses AbstractSoapClientBase::WSDL_EXCEPTIONS
* @uses AbstractSoapClientBase::WSDL_FEATURES
* @uses AbstractSoapClientBase::WSDL_LOCAL_CERT
* @uses AbstractSoapClientBase::WSDL_LOCATION
* @uses AbstractSoapClientBase::WSDL_LOGIN
* @uses AbstractSoapClientBase::WSDL_PASSPHRASE
* @uses AbstractSoapClientBase::WSDL_PASSWORD
* @uses AbstractSoapClientBase::WSDL_PROXY_HOST
* @uses AbstractSoapClientBase::WSDL_PROXY_LOGIN
* @uses AbstractSoapClientBase::WSDL_PROXY_PASSWORD
* @uses AbstractSoapClientBase::WSDL_PROXY_PORT
* @uses AbstractSoapClientBase::WSDL_SOAP_VERSION
* @uses AbstractSoapClientBase::WSDL_SSL_METHOD
* @uses AbstractSoapClientBase::WSDL_STREAM_CONTEXT
* @uses AbstractSoapClientBase::WSDL_STYLE
* @uses AbstractSoapClientBase::WSDL_TRACE
* @uses AbstractSoapClientBase::WSDL_TYPEMAP
* @uses AbstractSoapClientBase::WSDL_URL
* @uses AbstractSoapClientBase::WSDL_URI
* @uses AbstractSoapClientBase::WSDL_USE
* @uses AbstractSoapClientBase::WSDL_USER_AGENT
* @uses WSDL_CACHE_NONE
* @uses SOAP_SINGLE_ELEMENT_ARRAYS
* @uses SOAP_USE_XSI_ARRAY_TYPE
* @return array
*/
public static function getDefaultWsdlOptions()
{
return [
self::WSDL_AUTHENTICATION => null,
self::WSDL_CACHE_WSDL => WSDL_CACHE_NONE,
self::WSDL_CLASSMAP => null,
self::WSDL_COMPRESSION => null,
self::WSDL_CONNECTION_TIMEOUT => null,
self::WSDL_ENCODING => null,
self::WSDL_EXCEPTIONS => true,
self::WSDL_FEATURES => SOAP_SINGLE_ELEMENT_ARRAYS | SOAP_USE_XSI_ARRAY_TYPE,
self::WSDL_LOCAL_CERT => null,
self::WSDL_LOCATION => null,
self::WSDL_LOGIN => null,
self::WSDL_PASSPHRASE => null,
self::WSDL_PASSWORD => null,
self::WSDL_PROXY_HOST => null,
self::WSDL_PROXY_LOGIN => null,
self::WSDL_PROXY_PASSWORD => null,
self::WSDL_PROXY_PORT => null,
self::WSDL_SOAP_VERSION => null,
self::WSDL_SSL_METHOD => null,
self::WSDL_STREAM_CONTEXT => null,
self::WSDL_STYLE => null,
self::WSDL_TRACE => true,
self::WSDL_TYPEMAP => null,
self::WSDL_URL => null,
self::WSDL_URI => null,
self::WSDL_USE => null,
self::WSDL_USER_AGENT => null,
];
}
/**
* Allows to set the SoapClient location to call
* @uses AbstractSoapClientBase::getSoapClient()
* @uses SoapClient::__setLocation()
* @param string $location
* @return AbstractSoapClientBase
*/
public function setLocation($location)
{
if (static::getSoapClient() instanceof \SoapClient) {
static::getSoapClient()->__setLocation($location);
}
return $this;
}
/**
* Returns the last request content as a DOMDocument or as a formated XML String
* @see SoapClient::__getLastRequest()
* @uses AbstractSoapClientBase::getSoapClient()
* @uses AbstractSoapClientBase::getFormatedXml()
* @uses SoapClient::__getLastRequest()
* @param bool $asDomDocument
* @return \DOMDocument|string|null
*/
public function getLastRequest($asDomDocument = false)
{
return $this->getLastXml('__getLastRequest', $asDomDocument);
}
/**
* Returns the last response content as a DOMDocument or as a formated XML String
* @see SoapClient::__getLastResponse()
* @uses AbstractSoapClientBase::getSoapClient()
* @uses AbstractSoapClientBase::getFormatedXml()
* @uses SoapClient::__getLastResponse()
* @param bool $asDomDocument
* @return \DOMDocument|string|null
*/
public function getLastResponse($asDomDocument = false)
{
return $this->getLastXml('__getLastResponse', $asDomDocument);
}
/**
* @param string $method
* @param bool $asDomDocument
* @return \DOMDocument|string|null
*/
protected function getLastXml($method, $asDomDocument = false)
{
$xml = null;
if (static::getSoapClient() instanceof \SoapClient) {
$xml = static::getFormatedXml(static::getSoapClient()->$method(), $asDomDocument);
}
return $xml;
}
/**
* Returns the last request headers used by the SoapClient object as the original value or an array
* @see SoapClient::__getLastRequestHeaders()
* @uses AbstractSoapClientBase::getSoapClient()
* @uses AbstractSoapClientBase::convertStringHeadersToArray()
* @uses SoapClient::__getLastRequestHeaders()
* @param bool $asArray allows to get the headers in an associative array
* @return null|string|array
*/
public function getLastRequestHeaders($asArray = false)
{
return $this->getLastHeaders('__getLastRequestHeaders', $asArray);
}
/**
* Returns the last response headers used by the SoapClient object as the original value or an array
* @see SoapClient::__getLastResponseHeaders()
* @uses AbstractSoapClientBase::getSoapClient()
* @uses AbstractSoapClientBase::convertStringHeadersToArray()
* @uses SoapClient::__getLastRequestHeaders()
* @param bool $asArray allows to get the headers in an associative array
* @return null|string|array
*/
public function getLastResponseHeaders($asArray = false)
{
return $this->getLastHeaders('__getLastResponseHeaders', $asArray);
}
/**
* @param string $method
* @param bool $asArray allows to get the headers in an associative array
* @return string[]|null
*/
protected function getLastHeaders($method, $asArray)
{
$headers = static::getSoapClient() instanceof \SoapClient ? static::getSoapClient()->$method() : null;
if (is_string($headers) && $asArray) {
return static::convertStringHeadersToArray($headers);
}
return $headers;
}
/**
* Returns a XML string content as a DOMDocument or as a formated XML string
* @uses \DOMDocument::loadXML()
* @uses \DOMDocument::saveXML()
* @param string $string
* @param bool $asDomDocument
* @return \DOMDocument|string|null
*/
public static function getFormatedXml($string, $asDomDocument = false)
{
return Utils::getFormatedXml($string, $asDomDocument);
}
/**
* Returns an associative array between the headers name and their respective values
* @param string $headers
* @return string[]
*/
public static function convertStringHeadersToArray($headers)
{
$lines = explode("\r\n", $headers);
$headers = [];
foreach ($lines as $line) {
if (strpos($line, ':')) {
$headerParts = explode(':', $line);
$headers[$headerParts[0]] = trim(implode(':', array_slice($headerParts, 1)));
}
}
return $headers;
}
/**
* Sets a SoapHeader to send
* For more information, please read the online documentation on {@link http://www.php.net/manual/en/class.soapheader.php}
* @uses AbstractSoapClientBase::getSoapClient()
* @uses SoapClient::__setSoapheaders()
* @param string $nameSpace SoapHeader namespace
* @param string $name SoapHeader name
* @param mixed $data SoapHeader data
* @param bool $mustUnderstand
* @param string $actor
* @return AbstractSoapClientBase
*/
public function setSoapHeader($nameSpace, $name, $data, $mustUnderstand = false, $actor = null)
{
if (static::getSoapClient()) {
$defaultHeaders = (isset(static::getSoapClient()->__default_headers) && is_array(static::getSoapClient()->__default_headers)) ? static::getSoapClient()->__default_headers : [];
foreach ($defaultHeaders as $index => $soapHeader) {
if ($soapHeader->name === $name) {
unset($defaultHeaders[$index]);
break;
}
}
static::getSoapClient()->__setSoapheaders(null);
if (!empty($actor)) {
array_push($defaultHeaders, new \SoapHeader($nameSpace, $name, $data, $mustUnderstand, $actor));
} else {
array_push($defaultHeaders, new \SoapHeader($nameSpace, $name, $data, $mustUnderstand));
}
static::getSoapClient()->__setSoapheaders($defaultHeaders);
}
return $this;
}
/**
* Sets the SoapClient Stream context HTTP Header name according to its value
* If a context already exists, it tries to modify it
* It the context does not exist, it then creates it with the header name and its value
* @uses AbstractSoapClientBase::getSoapClient()
* @param string $headerName
* @param mixed $headerValue
* @return bool
*/
public function setHttpHeader($headerName, $headerValue)
{
$state = false;
if (static::getSoapClient() && !empty($headerName)) {
$streamContext = $this->getStreamContext();
if ($streamContext === null) {
$options = [];
$options['http'] = [];
$options['http']['header'] = '';
} else {
$options = stream_context_get_options($streamContext);
if (!array_key_exists('http', $options) || !is_array($options['http'])) {
$options['http'] = [];
$options['http']['header'] = '';
} elseif (!array_key_exists('header', $options['http'])) {
$options['http']['header'] = '';
}
}
if (count($options) && array_key_exists('http', $options) && is_array($options['http']) && array_key_exists('header', $options['http']) && is_string($options['http']['header'])) {
$lines = explode("\r\n", $options['http']['header']);
/**
* Ensure there is only one header entry for this header name
*/
$newLines = [];
foreach ($lines as $line) {
if (!empty($line) && strpos($line, $headerName) === false) {
array_push($newLines, $line);
}
}
/**
* Add new header entry
*/
array_push($newLines, "$headerName: $headerValue");
/**
* Set the context http header option
*/
$options['http']['header'] = implode("\r\n", $newLines);
/**
* Create context if it does not exist
*/
if ($streamContext === null) {
$state = (static::getSoapClient()->_stream_context = stream_context_create($options)) ? true : false;
} else {
/**
* Set the new context http header option
*/
$state = stream_context_set_option(static::getSoapClient()->_stream_context, 'http', 'header', $options['http']['header']);
}
}
}
return $state;
}
/**
* Returns current \SoapClient::_stream_context resource or null
* @return resource|null
*/
public function getStreamContext()
{
return (static::getSoapClient() && isset(static::getSoapClient()->_stream_context) && is_resource(static::getSoapClient()->_stream_context)) ? static::getSoapClient()->_stream_context : null;
}
/**
* Returns current \SoapClient::_stream_context resource options or empty array
* @return array
*/
public function getStreamContextOptions()
{
$options = [];
$context = $this->getStreamContext();
if ($context !== null) {
$options = stream_context_get_options($context);
}
return $options;
}
/**
* Method returning last errors occured during the calls
* @return array
*/
public function getLastError()
{
return $this->lastError;
}
/**
* Method setting last errors occured during the calls
* @param array $lastError
* @return AbstractSoapClientBase
*/
private function setLastError($lastError)
{
$this->lastError = $lastError;
return $this;
}
/**
* Method saving the last error returned by the SoapClient
* @param string $methodName the method called when the error occurred
* @param \SoapFault $soapFault l'objet de l'erreur
* @return AbstractSoapClientBase
*/
public function saveLastError($methodName, \SoapFault $soapFault)
{
$this->lastError[$methodName] = $soapFault;
return $this;
}
/**
* Method getting the last error for a certain method
* @param string $methodName method name to get error from
* @return \SoapFault|null
*/
public function getLastErrorForMethod($methodName)
{
return array_key_exists($methodName, $this->lastError) ? $this->lastError[$methodName] : null;
}
/**
* Method returning current result from Soap call
* @return mixed
*/
public function getResult()
{
return $this->result;
}
/**
* Method setting current result from Soap call
* @param mixed $result
* @return AbstractSoapClientBase
*/
public function setResult($result)
{
$this->result = $result;
return $this;
}
}

View File

@@ -0,0 +1,269 @@
<?php
namespace WsdlToPhp\PackageBase;
abstract class AbstractStructArrayBase extends AbstractStructBase implements StructArrayInterface
{
/**
* Array that contains values when only one parameter is set when calling __construct method
* @var array
*/
protected $internArray;
/**
* Bool that tells if array is set or not
* @var bool
*/
protected $internArrayIsArray;
/**
* Items index browser
* @var int
*/
protected $internArrayOffset;
/**
* Method alias to count
* @uses AbstractStructArrayBase::count()
* @return int
*/
public function length()
{
return $this->count();
}
/**
* Method returning item length, alias to length
* @uses AbstractStructArrayBase::getInternArray()
* @uses AbstractStructArrayBase::getInternArrayIsArray()
* @return int
*/
public function count()
{
return $this->getInternArrayIsArray() ? count($this->getInternArray()) : -1;
}
/**
* Method returning the current element
* @uses AbstractStructArrayBase::offsetGet()
* @return mixed
*/
public function current()
{
return $this->offsetGet($this->internArrayOffset);
}
/**
* Method moving the current position to the next element
* @uses AbstractStructArrayBase::getInternArrayOffset()
* @uses AbstractStructArrayBase::setInternArrayOffset()
* @return AbstractStructArrayBase
*/
public function next()
{
return $this->setInternArrayOffset($this->getInternArrayOffset() + 1);
}
/**
* Method resetting itemOffset
* @uses AbstractStructArrayBase::setInternArrayOffset()
* @return int
*/
public function rewind()
{
return $this->setInternArrayOffset(0);
}
/**
* Method checking if current itemOffset points to an existing item
* @uses AbstractStructArrayBase::getInternArrayOffset()
* @uses AbstractStructArrayBase::offsetExists()
* @return bool
*/
public function valid()
{
return $this->offsetExists($this->getInternArrayOffset());
}
/**
* Method returning current itemOffset value, alias to getInternArrayOffset
* @uses AbstractStructArrayBase::getInternArrayOffset()
* @return int
*/
public function key()
{
return $this->getInternArrayOffset();
}
/**
* Method alias to offsetGet
* @see AbstractStructArrayBase::offsetGet()
* @uses AbstractStructArrayBase::offsetGet()
* @param int $index
* @return mixed
*/
public function item($index)
{
return $this->offsetGet($index);
}
/**
* Default method adding item to array
* @uses AbstractStructArrayBase::getAttributeName()
* @uses AbstractStructArrayBase::__toString()
* @uses AbstractStructArrayBase::_set()
* @uses AbstractStructArrayBase::_get()
* @uses AbstractStructArrayBase::setInternArray()
* @uses AbstractStructArrayBase::setInternArrayIsArray()
* @uses AbstractStructArrayBase::setInternArrayOffset()
* @param mixed $item value
* @return AbstractStructArrayBase
*/
public function add($item)
{
// init array
if (!is_array($this->_get($this->getAttributeName()))) {
$this->_set($this->getAttributeName(), []);
}
// current array
$currentArray = $this->_get($this->getAttributeName());
array_push($currentArray, $item);
$this
->_set($this->getAttributeName(), $currentArray)
->setInternArray($currentArray)
->setInternArrayIsArray(true)
->setInternArrayOffset(0);
return $this;
}
/**
* Method returning the first item
* @uses AbstractStructArrayBase::item()
* @return mixed
*/
public function first()
{
return $this->item(0);
}
/**
* Method returning the last item
* @uses AbstractStructArrayBase::item()
* @uses AbstractStructArrayBase::length()
* @return mixed
*/
public function last()
{
return $this->item($this->length() - 1);
}
/**
* Method testing index in item
* @uses AbstractStructArrayBase::getInternArrayIsArray()
* @uses AbstractStructArrayBase::getInternArray()
* @param int $offset
* @return bool
*/
public function offsetExists($offset)
{
return ($this->getInternArrayIsArray() && array_key_exists($offset, $this->getInternArray()));
}
/**
* Method returning the item at "index" value
* @uses AbstractStructArrayBase::offsetExists()
* @param int $offset
* @return mixed
*/
public function offsetGet($offset)
{
return $this->offsetExists($offset) ? $this->internArray[$offset] : null;
}
/**
* Method setting value at offset
* @param mixed $offset
* @param mixed $value
* @return AbstractStructArrayBase
*/
public function offsetSet($offset, $value)
{
$this->internArray[$offset] = $value;
return $this->_set($this->getAttributeName(), $this->internArray);
}
/**
* Method unsetting value at offset
* @param mixed $offset
* @return AbstractStructArrayBase
*/
public function offsetUnset($offset)
{
if ($this->offsetExists($offset)) {
unset($this->internArray[$offset]);
$this->_set($this->getAttributeName(), $this->internArray);
}
return $this;
}
/**
* Method returning intern array to iterate trough
* @return array
*/
public function getInternArray()
{
return $this->internArray;
}
/**
* Method setting intern array to iterate trough
* @param array $internArray
* @return AbstractStructArrayBase
*/
public function setInternArray($internArray)
{
$this->internArray = $internArray;
return $this;
}
/**
* Method returnint intern array index when iterating trough
* @return int
*/
public function getInternArrayOffset()
{
return $this->internArrayOffset;
}
/**
* Method initiating internArray
* @uses AbstractStructArrayBase::setInternArray()
* @uses AbstractStructArrayBase::setInternArrayOffset()
* @uses AbstractStructArrayBase::setInternArrayIsArray()
* @uses AbstractStructArrayBase::getAttributeName()
* @uses AbstractStructArrayBase::initInternArray()
* @uses AbstractStructArrayBase::__toString()
* @param array $array the array to iterate trough
* @param bool $internCall indicates that methods is calling itself
* @return AbstractStructArrayBase
*/
public function initInternArray($array = [], $internCall = false)
{
if (is_array($array) && count($array) > 0) {
$this
->setInternArray($array)
->setInternArrayOffset(0)
->setInternArrayIsArray(true);
} elseif (!$internCall && property_exists($this, $this->getAttributeName())) {
$this->initInternArray($this->_get($this->getAttributeName()), true);
}
return $this;
}
/**
* Method setting intern array offset when iterating trough
* @param int $internArrayOffset
* @return AbstractStructArrayBase
*/
public function setInternArrayOffset($internArrayOffset)
{
$this->internArrayOffset = $internArrayOffset;
return $this;
}
/**
* Method returning true if intern array is an actual array
* @return bool
*/
public function getInternArrayIsArray()
{
return $this->internArrayIsArray;
}
/**
* Method setting if intern array is an actual array
* @param bool $internArrayIsArray
* @return AbstractStructArrayBase
*/
public function setInternArrayIsArray($internArrayIsArray = false)
{
$this->internArrayIsArray = $internArrayIsArray;
return $this;
}
}

View File

@@ -0,0 +1,62 @@
<?php
namespace WsdlToPhp\PackageBase;
abstract class AbstractStructBase implements StructInterface, \JsonSerializable
{
/**
* Returns the properties of this object
* @return mixed[]
*/
public function jsonSerialize()
{
return \get_object_vars($this);
}
/**
* Generic method called when an object has been exported with var_export() functions
* It allows to return an object instantiated with the values
* @uses AbstractStructBase::_set()
* @param array $array the exported values
* @return Struct
*/
public static function __set_state(array $array)
{
$className = get_called_class();
$object = new $className();
foreach ($array as $name => $value) {
$object->_set($name, $value);
}
return $object;
}
/**
* Generic method setting value
* @throws \InvalidArgumentException
* @param string $name property name to set
* @param mixed $value property value to use
* @return Struct
*/
public function _set($name, $value)
{
$setMethod = 'set' . ucfirst($name);
if (method_exists($this, $setMethod)) {
$this->$setMethod($value);
} else {
throw new \InvalidArgumentException(sprintf('Setter does not exist for "%s" property', $name));
}
return $this;
}
/**
* Generic method getting value
* @throws \InvalidArgumentException
* @param string $name property name to get
* @return mixed
*/
public function _get($name)
{
$getMethod = 'get' . ucfirst($name);
if (method_exists($this, $getMethod)) {
return $this->$getMethod();
}
throw new \InvalidArgumentException(sprintf('Getter does not exist for "%s" property', $name));
}
}

View File

@@ -0,0 +1,202 @@
<?php
namespace WsdlToPhp\PackageBase;
interface SoapClientInterface
{
/**
* @var string
*/
const DEFAULT_SOAP_CLIENT_CLASS = '\SoapClient';
/**
* @var string
*/
const OPTION_PREFIX = 'wsdl_';
/**
* Option key to define WSDL authentication
* @var string
*/
const WSDL_AUTHENTICATION = 'wsdl_authentication';
/**
* Option key to define WSDL cache_wsdl
* @var string
*/
const WSDL_CACHE_WSDL = 'wsdl_cache_wsdl';
/**
* Option key to define WSDL classmap
* @var string
*/
const WSDL_CLASSMAP = 'wsdl_classmap';
/**
* Option key to define WSDL compression
* @var string
*/
const WSDL_COMPRESSION = 'wsdl_compression';
/**
* Option key to define WSDL connection_timeout
* @var string
*/
const WSDL_CONNECTION_TIMEOUT = 'wsdl_connection_timeout';
/**
* Option key to define WSDL encoding
* @var string
*/
const WSDL_ENCODING = 'wsdl_encoding';
/**
* Option key to define WSDL exceptions
* @var string
*/
const WSDL_EXCEPTIONS = 'wsdl_exceptions';
/**
* Option key to define WSDL features
* @var string
*/
const WSDL_FEATURES = 'wsdl_features';
/**
* Option key to define WSDL keep_alive
* @var string
*/
const WSDL_KEEP_ALIVE = 'wsdl_keep_alive';
/**
* Option key to define WSDL local_cert
* @var string
*/
const WSDL_LOCAL_CERT = 'wsdl_local_cert';
/**
* Option key to define WSDL location
* @var string
*/
const WSDL_LOCATION = 'wsdl_location';
/**
* Option key to define WSDL login
* @var string
*/
const WSDL_LOGIN = 'wsdl_login';
/**
* Option key to define WSDL passphrase
* @var string
*/
const WSDL_PASSPHRASE = 'wsdl_passphrase';
/**
* Option key to define WSDL password
* @var string
*/
const WSDL_PASSWORD = 'wsdl_password';
/**
* Option key to define WSDL proxy_host
* @var string
*/
const WSDL_PROXY_HOST = 'wsdl_proxy_host';
/**
* Option key to define WSDL proxy_login
* @var string
*/
const WSDL_PROXY_LOGIN = 'wsdl_proxy_login';
/**
* Option key to define WSDL proxy_password
* @var string
*/
const WSDL_PROXY_PASSWORD = 'wsdl_proxy_password';
/**
* Option key to define WSDL proxy_port
* @var string
*/
const WSDL_PROXY_PORT = 'wsdl_proxy_port';
/**
* Option key to define WSDL soap_version
* @var string
*/
const WSDL_SOAP_VERSION = 'wsdl_soap_version';
/**
* Option key to define WSDL ssl_method
* @var string
*/
const WSDL_SSL_METHOD = 'wsdl_ssl_method';
/**
* Option key to define WSDL stream_context
* @var string
*/
const WSDL_STREAM_CONTEXT = 'wsdl_stream_context';
/**
* Option key to define WSDL style
* @var string
*/
const WSDL_STYLE = 'wsdl_style';
/**
* Option key to define WSDL trace option
* @var string
*/
const WSDL_TRACE = 'wsdl_trace';
/**
* Option key to define WSDL typemap
* @var string
*/
const WSDL_TYPEMAP = 'wsdl_typemap';
/**
* Option key to define WSDL url
* @var string
*/
const WSDL_URL = 'wsdl_url';
/**
* Option key to define WSDL uri
* @var string
*/
const WSDL_URI = 'wsdl_uri';
/**
* Option key to define WSDL use
* @var string
*/
const WSDL_USE = 'wsdl_use';
/**
* Option key to define WSDL user_agent
* @var string
*/
const WSDL_USER_AGENT = 'wsdl_user_agent';
/**
* Constructor
* @uses SoapClientInterface::setLastError()
* @uses SoapClientInterface::initSoapClient()
* @param array $wsdlOptions
* @param bool $resetSoapClient allows to disable the SoapClient redefinition
*/
public function __construct(array $wsdlOptions = [], $resetSoapClient = true);
/**
* Static method getting current SoapClient
* @return \SoapClient
*/
public static function getSoapClient();
/**
* Sets a SoapHeader to send
* For more information, please read the online documentation on {@link http://www.php.net/manual/en/class.soapheader.php}
* @param string $nameSpace SoapHeader namespace
* @param string $name SoapHeader name
* @param mixed $data SoapHeader data
* @param bool $mustUnderstand
* @param string $actor
* @return SoapClientInterface
*/
public function setSoapHeader($nameSpace, $name, $data, $mustUnderstand = false, $actor = null);
/**
* Method returning last errors occured during the calls
* @return array
*/
public function getLastError();
/**
* Method saving the last error returned by the SoapClient
* @param string $methodName the method called when the error occurred
* @param \SoapFault $soapFault l'objet de l'erreur
* @return SoapClientInterface
*/
public function saveLastError($methodName, \SoapFault $soapFault);
/**
* Method returning current result from Soap call
* @return mixed
*/
public function getResult();
/**
* Method setting current result from Soap call
* @param mixed $result
* @return SoapClientInterface
*/
public function setResult($result);
}

View File

@@ -0,0 +1,13 @@
<?php
namespace WsdlToPhp\PackageBase;
interface StructArrayInterface extends StructInterface, \ArrayAccess, \Iterator, \Countable
{
/**
* Method returning alone attribute name when class is *array* type
* This method has been overridden in real-array struct class
* @return string
*/
public function getAttributeName();
}

Some files were not shown because too many files have changed in this diff Show More