xxxxxxxxxx
namespace GLS;
use \WsdlToPhp\PackageBase\AbstractStructBase;
/**
* This class stands for cBulkCustomsClearanceAddress Struct
* @subpackage Structs
*/
class CBulkCustomsClearanceAddress extends AbstractStructBase
{
/**
* The name1
* Meta information extracted from the WSDL
* - maxOccurs: 1
* - minOccurs: 1
* @var string
*/
public $name1;
/**
* The street1
* Meta information extracted from the WSDL
* - maxOccurs: 1
* - minOccurs: 1
* @var string
*/
public $street1;
/**
* The postcode
* Meta information extracted from the WSDL
* - maxOccurs: 1
* - minOccurs: 1
* @var string
*/
public $postcode;
/**
* The city
* Meta information extracted from the WSDL
* - maxOccurs: 1
* - minOccurs: 1
* @var string
*/
public $city;
/**
* The countryCode
* Meta information extracted from the WSDL
* - maxOccurs: 1
* - minOccurs: 1
* @var string
*/
public $countryCode;
/**
* The name2
* Meta information extracted from the WSDL
* - maxOccurs: 1
* - minOccurs: 0
* @var string
*/
public $name2;
/**
* The street2
* Meta information extracted from the WSDL
* - maxOccurs: 1
* - minOccurs: 0
* @var string
*/
public $street2;
/**
* The houseNumber
* Meta information extracted from the WSDL
* - maxOccurs: 1
* - minOccurs: 0
* @var string
*/
public $houseNumber;
/**
* The stateOrRegion
* Meta information extracted from the WSDL
* - maxOccurs: 1
* - minOccurs: 0
* @var string
*/
public $stateOrRegion;
/**
* Constructor method for cBulkCustomsClearanceAddress
* @uses CBulkCustomsClearanceAddress::setName1()
* @uses CBulkCustomsClearanceAddress::setStreet1()
* @uses CBulkCustomsClearanceAddress::setPostcode()
* @uses CBulkCustomsClearanceAddress::setCity()
* @uses CBulkCustomsClearanceAddress::setCountryCode()
* @uses CBulkCustomsClearanceAddress::setName2()
* @uses CBulkCustomsClearanceAddress::setStreet2()
* @uses CBulkCustomsClearanceAddress::setHouseNumber()
* @uses CBulkCustomsClearanceAddress::setStateOrRegion()
* @param string $name1
* @param string $street1
* @param string $postcode
* @param string $city
* @param string $countryCode
* @param string $name2
* @param string $street2
* @param string $houseNumber
* @param string $stateOrRegion
*/
public function __construct($name1 = null, $street1 = null, $postcode = null, $city = null, $countryCode = null, $name2 = null, $street2 = null, $houseNumber = null, $stateOrRegion = null)
{
$this
->setName1($name1)
->setStreet1($street1)
->setPostcode($postcode)
->setCity($city)
->setCountryCode($countryCode)
->setName2($name2)
->setStreet2($street2)
->setHouseNumber($houseNumber)
->setStateOrRegion($stateOrRegion);
}
/**
* Get name1 value
* @return string
*/
public function getName1()
{
return $this->name1;
}
/**
* Set name1 value
* @param string $name1
* @return \GLS\CBulkCustomsClearanceAddress
*/
public function setName1($name1 = null)
{
// validation for constraint: string
if (!is_null($name1) && !is_string($name1)) {
throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($name1, true), gettype($name1)), __LINE__);
}
$this->name1 = $name1;
return $this;
}
/**
* Get street1 value
* @return string
*/
public function getStreet1()
{
return $this->street1;
}
/**
* Set street1 value
* @param string $street1
* @return \GLS\CBulkCustomsClearanceAddress
*/
public function setStreet1($street1 = null)
{
// validation for constraint: string
if (!is_null($street1) && !is_string($street1)) {
throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($street1, true), gettype($street1)), __LINE__);
}
$this->street1 = $street1;
return $this;
}
/**
* Get postcode value
* @return string
*/
public function getPostcode()
{
return $this->postcode;
}
/**
* Set postcode value
* @param string $postcode
* @return \GLS\CBulkCustomsClearanceAddress
*/
public function setPostcode($postcode = null)
{
// validation for constraint: string
if (!is_null($postcode) && !is_string($postcode)) {
throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($postcode, true), gettype($postcode)), __LINE__);
}
$this->postcode = $postcode;
return $this;
}
/**
* Get city value
* @return string
*/
public function getCity()
{
return $this->city;
}
/**
* Set city value
* @param string $city
* @return \GLS\CBulkCustomsClearanceAddress
*/
public function setCity($city = null)
{
// validation for constraint: string
if (!is_null($city) && !is_string($city)) {
throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($city, true), gettype($city)), __LINE__);
}
$this->city = $city;
return $this;
}
/**
* Get countryCode value
* @return string
*/
public function getCountryCode()
{
return $this->countryCode;
}
/**
* Set countryCode value
* @param string $countryCode
* @return \GLS\CBulkCustomsClearanceAddress
*/
public function setCountryCode($countryCode = null)
{
// validation for constraint: string
if (!is_null($countryCode) && !is_string($countryCode)) {
throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($countryCode, true), gettype($countryCode)), __LINE__);
}
$this->countryCode = $countryCode;
return $this;
}
/**
* Get name2 value
* @return string|null
*/
public function getName2()
{
return $this->name2;
}
/**
* Set name2 value
* @param string $name2
* @return \GLS\CBulkCustomsClearanceAddress
*/
public function setName2($name2 = null)
{
// validation for constraint: string
if (!is_null($name2) && !is_string($name2)) {
throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($name2, true), gettype($name2)), __LINE__);
}
$this->name2 = $name2;
return $this;
}
/**
* Get street2 value
* @return string|null
*/
public function getStreet2()
{
return $this->street2;
}
/**
* Set street2 value
* @param string $street2
* @return \GLS\CBulkCustomsClearanceAddress
*/
public function setStreet2($street2 = null)
{
// validation for constraint: string
if (!is_null($street2) && !is_string($street2)) {
throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($street2, true), gettype($street2)), __LINE__);
}
$this->street2 = $street2;
return $this;
}
/**
* Get houseNumber value
* @return string|null
*/
public function getHouseNumber()
{
return $this->houseNumber;
}
/**
* Set houseNumber value
* @param string $houseNumber
* @return \GLS\CBulkCustomsClearanceAddress
*/
public function setHouseNumber($houseNumber = null)
{
// validation for constraint: string
if (!is_null($houseNumber) && !is_string($houseNumber)) {
throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($houseNumber, true), gettype($houseNumber)), __LINE__);
}
$this->houseNumber = $houseNumber;
return $this;
}
/**
* Get stateOrRegion value
* @return string|null
*/
public function getStateOrRegion()
{
return $this->stateOrRegion;
}
/**
* Set stateOrRegion value
* @param string $stateOrRegion
* @return \GLS\CBulkCustomsClearanceAddress
*/
public function setStateOrRegion($stateOrRegion = null)
{
// validation for constraint: string
if (!is_null($stateOrRegion) && !is_string($stateOrRegion)) {
throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($stateOrRegion, true), gettype($stateOrRegion)), __LINE__);
}
$this->stateOrRegion = $stateOrRegion;
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