xxxxxxxxxx
namespace GLS;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for cParcelShop2Valid Struct
* @subpackage Structs
*/
class CParcelShop2Valid extends AbstractStructBase
{
/**
* The from
* Meta information extracted from the WSDL
* - maxOccurs: 1
* - minOccurs: 1
* @var string
*/
public $from;
/**
* The to
* Meta information extracted from the WSDL
* - maxOccurs: 1
* - minOccurs: 1
* @var string
*/
public $to;
/**
* Constructor method for cParcelShop2Valid
* @uses CParcelShop2Valid::setFrom()
* @uses CParcelShop2Valid::setTo()
* @param string $from
* @param string $to
*/
public function __construct($from = null, $to = null)
{
$this
->setFrom($from)
->setTo($to);
}
/**
* Get from value
* @return string
*/
public function getFrom()
{
return $this->from;
}
/**
* Set from value
* @param string $from
* @return \GLS\CParcelShop2Valid
*/
public function setFrom($from = null)
{
// validation for constraint: string
if (!is_null($from) && !is_string($from)) {
throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($from, true), gettype($from)), __LINE__);
}
$this->from = $from;
return $this;
}
/**
* Get to value
* @return string
*/
public function getTo()
{
return $this->to;
}
/**
* Set to value
* @param string $to
* @return \GLS\CParcelShop2Valid
*/
public function setTo($to = null)
{
// validation for constraint: string
if (!is_null($to) && !is_string($to)) {
throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($to, true), gettype($to)), __LINE__);
}
$this->to = $to;
return $this;
}
}
Don't be shy, don't hesitate to contact us for any subject, we'll be glad to help.
This platform is provided to give developpers and non developpers a way to easily consume SOAP Web Services or share their own SOAP Web Services with extra features powered by the platform.
© 2025 Providr.IO