Source of file GenerateLabelCustomer.php

Size: 23,627 Bytes - Last Modified: 2019-01-11T00:06:01+01:00

/Users/sylvainraye/Sites/git/swisspost/src/StructType/GenerateLabelCustomer.php

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598
<?php

namespace Diglin\Swisspost\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for GenerateLabelCustomer StructType
 * @subpackage Structs
 * @date 2019/01/11
 * @codeVersion 1.0.0
 */
class GenerateLabelCustomer extends AbstractStructBase
{
    /**
     * The Name1
     * Meta informations extracted from the WSDL
     * - maxLength: 25
     * - documentation: Excludes unsupported characters.
     * - pattern: ([^\*|\\|\{|\}|\[|\]|=|>|<])*
     * @var string
     */
    public $Name1;
    /**
     * The Name2
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * - maxLength: 25
     * - documentation: Excludes unsupported characters.
     * - pattern: ([^\*|\\|\{|\}|\[|\]|=|>|<])*
     * @var string
     */
    public $Name2;
    /**
     * The Street
     * Meta informations extracted from the WSDL
     * - maxLength: 25
     * - documentation: Excludes unsupported characters.
     * - pattern: ([^\*|\\|\{|\}|\[|\]|=|>|<])*
     * @var string
     */
    public $Street;
    /**
     * The POBox
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * - maxLength: 25
     * - documentation: Excludes unsupported characters.
     * - pattern: ([^\*|\\|\{|\}|\[|\]|=|>|<])*
     * @var string
     */
    public $POBox;
    /**
     * The ZIP
     * Meta informations extracted from the WSDL
     * - maxLength: 10
     * - totalDigits: 6
     * - documentation: Excludes unsupported characters.
     * - pattern: ([^\*|\\|\{|\}|\[|\]|=|>|<])*
     * @var string
     */
    public $ZIP;
    /**
     * The City
     * Meta informations extracted from the WSDL
     * - maxLength: 25
     * - documentation: Excludes unsupported characters.
     * - pattern: ([^\*|\\|\{|\}|\[|\]|=|>|<])*
     * @var string
     */
    public $City;
    /**
     * The Country
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * - documentation: The ISO country code.
     * - pattern: [a-zA-Z]{2}
     * @var string
     */
    public $Country;
    /**
     * The Logo
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var string
     */
    public $Logo;
    /**
     * The LogoFormat
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * - maxLength: 3
     * - documentation: Excludes unsupported characters.
     * - pattern: ([^\*|\\|\{|\}|\[|\]|=|>|<])*
     * @var string
     */
    public $LogoFormat;
    /**
     * The LogoRotation
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var string
     */
    public $LogoRotation;
    /**
     * The LogoAspectRatio
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var string
     */
    public $LogoAspectRatio;
    /**
     * The LogoHorizontalAlign
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var string
     */
    public $LogoHorizontalAlign;
    /**
     * The LogoVerticalAlign
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * @var string
     */
    public $LogoVerticalAlign;
    /**
     * The DomicilePostOffice
     * Meta informations extracted from the WSDL
     * - minOccurs: 0
     * - maxLength: 35
     * - documentation: Excludes unsupported characters.
     * - pattern: ([^\*|\\|\{|\}|\[|\]|=|>|<])*
     * @var string
     */
    public $DomicilePostOffice;
    /**
     * Constructor method for GenerateLabelCustomer
     * @uses GenerateLabelCustomer::setName1()
     * @uses GenerateLabelCustomer::setName2()
     * @uses GenerateLabelCustomer::setStreet()
     * @uses GenerateLabelCustomer::setPOBox()
     * @uses GenerateLabelCustomer::setZIP()
     * @uses GenerateLabelCustomer::setCity()
     * @uses GenerateLabelCustomer::setCountry()
     * @uses GenerateLabelCustomer::setLogo()
     * @uses GenerateLabelCustomer::setLogoFormat()
     * @uses GenerateLabelCustomer::setLogoRotation()
     * @uses GenerateLabelCustomer::setLogoAspectRatio()
     * @uses GenerateLabelCustomer::setLogoHorizontalAlign()
     * @uses GenerateLabelCustomer::setLogoVerticalAlign()
     * @uses GenerateLabelCustomer::setDomicilePostOffice()
     * @param string $name1
     * @param string $name2
     * @param string $street
     * @param string $pOBox
     * @param string $zIP
     * @param string $city
     * @param string $country
     * @param string $logo
     * @param string $logoFormat
     * @param string $logoRotation
     * @param string $logoAspectRatio
     * @param string $logoHorizontalAlign
     * @param string $logoVerticalAlign
     * @param string $domicilePostOffice
     */
    public function __construct($name1 = null, $name2 = null, $street = null, $pOBox = null, $zIP = null, $city = null, $country = null, $logo = null, $logoFormat = null, $logoRotation = null, $logoAspectRatio = null, $logoHorizontalAlign = null, $logoVerticalAlign = null, $domicilePostOffice = null)
    {
        $this
            ->setName1($name1)
            ->setName2($name2)
            ->setStreet($street)
            ->setPOBox($pOBox)
            ->setZIP($zIP)
            ->setCity($city)
            ->setCountry($country)
            ->setLogo($logo)
            ->setLogoFormat($logoFormat)
            ->setLogoRotation($logoRotation)
            ->setLogoAspectRatio($logoAspectRatio)
            ->setLogoHorizontalAlign($logoHorizontalAlign)
            ->setLogoVerticalAlign($logoVerticalAlign)
            ->setDomicilePostOffice($domicilePostOffice);
    }
    /**
     * Get Name1 value
     * @return string|null
     */
    public function getName1()
    {
        return $this->Name1;
    }
    /**
     * Set Name1 value
     * @param string $name1
     * @return \Diglin\Swisspost\StructType\GenerateLabelCustomer
     */
    public function setName1($name1 = null)
    {
        // validation for constraint: maxLength
        if ((is_scalar($name1) && strlen($name1) > 25) || (is_array($name1) && count($name1) > 25)) {
            throw new \InvalidArgumentException(sprintf('Invalid length, please provide an array with 25 element(s) or a scalar of 25 character(s) at most, "%d" length given', is_scalar($name1) ? strlen($name1) : count($name1)), __LINE__);
        }
        // validation for constraint: pattern
        if (is_scalar($name1) && !preg_match('/([^\\*|\\\\|\\{|\\}|\\[|\\]|=|>|<])*/', $name1)) {
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a scalar value that matches "([^\*|\\|\{|\}|\[|\]|=|>|<])*", "%s" given', var_export($name1, true)), __LINE__);
        }
        // validation for constraint: string
        if (!is_null($name1) && !is_string($name1)) {
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($name1)), __LINE__);
        }
        $this->Name1 = $name1;
        return $this;
    }
    /**
     * Get Name2 value
     * @return string|null
     */
    public function getName2()
    {
        return $this->Name2;
    }
    /**
     * Set Name2 value
     * @param string $name2
     * @return \Diglin\Swisspost\StructType\GenerateLabelCustomer
     */
    public function setName2($name2 = null)
    {
        // validation for constraint: maxLength
        if ((is_scalar($name2) && strlen($name2) > 25) || (is_array($name2) && count($name2) > 25)) {
            throw new \InvalidArgumentException(sprintf('Invalid length, please provide an array with 25 element(s) or a scalar of 25 character(s) at most, "%d" length given', is_scalar($name2) ? strlen($name2) : count($name2)), __LINE__);
        }
        // validation for constraint: pattern
        if (is_scalar($name2) && !preg_match('/([^\\*|\\\\|\\{|\\}|\\[|\\]|=|>|<])*/', $name2)) {
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a scalar value that matches "([^\*|\\|\{|\}|\[|\]|=|>|<])*", "%s" given', var_export($name2, true)), __LINE__);
        }
        // validation for constraint: string
        if (!is_null($name2) && !is_string($name2)) {
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($name2)), __LINE__);
        }
        $this->Name2 = $name2;
        return $this;
    }
    /**
     * Get Street value
     * @return string|null
     */
    public function getStreet()
    {
        return $this->Street;
    }
    /**
     * Set Street value
     * @param string $street
     * @return \Diglin\Swisspost\StructType\GenerateLabelCustomer
     */
    public function setStreet($street = null)
    {
        // validation for constraint: maxLength
        if ((is_scalar($street) && strlen($street) > 25) || (is_array($street) && count($street) > 25)) {
            throw new \InvalidArgumentException(sprintf('Invalid length, please provide an array with 25 element(s) or a scalar of 25 character(s) at most, "%d" length given', is_scalar($street) ? strlen($street) : count($street)), __LINE__);
        }
        // validation for constraint: pattern
        if (is_scalar($street) && !preg_match('/([^\\*|\\\\|\\{|\\}|\\[|\\]|=|>|<])*/', $street)) {
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a scalar value that matches "([^\*|\\|\{|\}|\[|\]|=|>|<])*", "%s" given', var_export($street, true)), __LINE__);
        }
        // validation for constraint: string
        if (!is_null($street) && !is_string($street)) {
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($street)), __LINE__);
        }
        $this->Street = $street;
        return $this;
    }
    /**
     * Get POBox value
     * @return string|null
     */
    public function getPOBox()
    {
        return $this->POBox;
    }
    /**
     * Set POBox value
     * @param string $pOBox
     * @return \Diglin\Swisspost\StructType\GenerateLabelCustomer
     */
    public function setPOBox($pOBox = null)
    {
        // validation for constraint: maxLength
        if ((is_scalar($pOBox) && strlen($pOBox) > 25) || (is_array($pOBox) && count($pOBox) > 25)) {
            throw new \InvalidArgumentException(sprintf('Invalid length, please provide an array with 25 element(s) or a scalar of 25 character(s) at most, "%d" length given', is_scalar($pOBox) ? strlen($pOBox) : count($pOBox)), __LINE__);
        }
        // validation for constraint: pattern
        if (is_scalar($pOBox) && !preg_match('/([^\\*|\\\\|\\{|\\}|\\[|\\]|=|>|<])*/', $pOBox)) {
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a scalar value that matches "([^\*|\\|\{|\}|\[|\]|=|>|<])*", "%s" given', var_export($pOBox, true)), __LINE__);
        }
        // validation for constraint: string
        if (!is_null($pOBox) && !is_string($pOBox)) {
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($pOBox)), __LINE__);
        }
        $this->POBox = $pOBox;
        return $this;
    }
    /**
     * Get ZIP value
     * @return string|null
     */
    public function getZIP()
    {
        return $this->ZIP;
    }
    /**
     * Set ZIP value
     * @param string $zIP
     * @return \Diglin\Swisspost\StructType\GenerateLabelCustomer
     */
    public function setZIP($zIP = null)
    {
        // validation for constraint: maxLength
        if ((is_scalar($zIP) && strlen($zIP) > 10) || (is_array($zIP) && count($zIP) > 10)) {
            throw new \InvalidArgumentException(sprintf('Invalid length, please provide an array with 10 element(s) or a scalar of 10 character(s) at most, "%d" length given', is_scalar($zIP) ? strlen($zIP) : count($zIP)), __LINE__);
        }
        // validation for constraint: totalDigits
        if (is_float($zIP) && strlen(str_replace(array(' ', '.', ',', '-', '+'), '', $zIP)) !== 6) {
            throw new \InvalidArgumentException(sprintf('Invalid value, the value must at most contain 6 digits, "%d" given', strlen(substr($zIP, strpos($zIP, '.')))), __LINE__);
        }
        // validation for constraint: pattern
        if (is_scalar($zIP) && !preg_match('/([^\\*|\\\\|\\{|\\}|\\[|\\]|=|>|<])*/', $zIP)) {
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a scalar value that matches "([^\*|\\|\{|\}|\[|\]|=|>|<])*", "%s" given', var_export($zIP, true)), __LINE__);
        }
        // validation for constraint: string
        if (!is_null($zIP) && !is_string($zIP)) {
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($zIP)), __LINE__);
        }
        $this->ZIP = $zIP;
        return $this;
    }
    /**
     * Get City value
     * @return string|null
     */
    public function getCity()
    {
        return $this->City;
    }
    /**
     * Set City value
     * @param string $city
     * @return \Diglin\Swisspost\StructType\GenerateLabelCustomer
     */
    public function setCity($city = null)
    {
        // validation for constraint: maxLength
        if ((is_scalar($city) && strlen($city) > 25) || (is_array($city) && count($city) > 25)) {
            throw new \InvalidArgumentException(sprintf('Invalid length, please provide an array with 25 element(s) or a scalar of 25 character(s) at most, "%d" length given', is_scalar($city) ? strlen($city) : count($city)), __LINE__);
        }
        // validation for constraint: pattern
        if (is_scalar($city) && !preg_match('/([^\\*|\\\\|\\{|\\}|\\[|\\]|=|>|<])*/', $city)) {
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a scalar value that matches "([^\*|\\|\{|\}|\[|\]|=|>|<])*", "%s" given', var_export($city, true)), __LINE__);
        }
        // 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 Country value
     * @return string|null
     */
    public function getCountry()
    {
        return $this->Country;
    }
    /**
     * Set Country value
     * @param string $country
     * @return \Diglin\Swisspost\StructType\GenerateLabelCustomer
     */
    public function setCountry($country = null)
    {
        // validation for constraint: pattern
        if (is_scalar($country) && !preg_match('/[a-zA-Z]{2}/', $country)) {
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a scalar value that matches "[a-zA-Z]{2}", "%s" given', var_export($country, true)), __LINE__);
        }
        // validation for constraint: string
        if (!is_null($country) && !is_string($country)) {
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($country)), __LINE__);
        }
        $this->Country = $country;
        return $this;
    }
    /**
     * Get Logo value
     * @return string|null
     */
    public function getLogo()
    {
        return $this->Logo;
    }
    /**
     * Set Logo value
     * @param string $logo
     * @return \Diglin\Swisspost\StructType\GenerateLabelCustomer
     */
    public function setLogo($logo = null)
    {
        // validation for constraint: string
        if (!is_null($logo) && !is_string($logo)) {
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($logo)), __LINE__);
        }
        $this->Logo = $logo;
        return $this;
    }
    /**
     * Get LogoFormat value
     * @return string|null
     */
    public function getLogoFormat()
    {
        return $this->LogoFormat;
    }
    /**
     * Set LogoFormat value
     * @param string $logoFormat
     * @return \Diglin\Swisspost\StructType\GenerateLabelCustomer
     */
    public function setLogoFormat($logoFormat = null)
    {
        // validation for constraint: maxLength
        if ((is_scalar($logoFormat) && strlen($logoFormat) > 3) || (is_array($logoFormat) && count($logoFormat) > 3)) {
            throw new \InvalidArgumentException(sprintf('Invalid length, please provide an array with 3 element(s) or a scalar of 3 character(s) at most, "%d" length given', is_scalar($logoFormat) ? strlen($logoFormat) : count($logoFormat)), __LINE__);
        }
        // validation for constraint: pattern
        if (is_scalar($logoFormat) && !preg_match('/([^\\*|\\\\|\\{|\\}|\\[|\\]|=|>|<])*/', $logoFormat)) {
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a scalar value that matches "([^\*|\\|\{|\}|\[|\]|=|>|<])*", "%s" given', var_export($logoFormat, true)), __LINE__);
        }
        // validation for constraint: string
        if (!is_null($logoFormat) && !is_string($logoFormat)) {
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($logoFormat)), __LINE__);
        }
        $this->LogoFormat = $logoFormat;
        return $this;
    }
    /**
     * Get LogoRotation value
     * @return string|null
     */
    public function getLogoRotation()
    {
        return $this->LogoRotation;
    }
    /**
     * Set LogoRotation value
     * @uses \Diglin\Swisspost\EnumType\LogoRotation::valueIsValid()
     * @uses \Diglin\Swisspost\EnumType\LogoRotation::getValidValues()
     * @throws \InvalidArgumentException
     * @param string $logoRotation
     * @return \Diglin\Swisspost\StructType\GenerateLabelCustomer
     */
    public function setLogoRotation($logoRotation = null)
    {
        // validation for constraint: enumeration
        if (!\Diglin\Swisspost\EnumType\LogoRotation::valueIsValid($logoRotation)) {
            throw new \InvalidArgumentException(sprintf('Value "%s" is invalid, please use one of: %s', $logoRotation, implode(', ', \Diglin\Swisspost\EnumType\LogoRotation::getValidValues())), __LINE__);
        }
        $this->LogoRotation = $logoRotation;
        return $this;
    }
    /**
     * Get LogoAspectRatio value
     * @return string|null
     */
    public function getLogoAspectRatio()
    {
        return $this->LogoAspectRatio;
    }
    /**
     * Set LogoAspectRatio value
     * @uses \Diglin\Swisspost\EnumType\LogoAspectRatio::valueIsValid()
     * @uses \Diglin\Swisspost\EnumType\LogoAspectRatio::getValidValues()
     * @throws \InvalidArgumentException
     * @param string $logoAspectRatio
     * @return \Diglin\Swisspost\StructType\GenerateLabelCustomer
     */
    public function setLogoAspectRatio($logoAspectRatio = null)
    {
        // validation for constraint: enumeration
        if (!\Diglin\Swisspost\EnumType\LogoAspectRatio::valueIsValid($logoAspectRatio)) {
            throw new \InvalidArgumentException(sprintf('Value "%s" is invalid, please use one of: %s', $logoAspectRatio, implode(', ', \Diglin\Swisspost\EnumType\LogoAspectRatio::getValidValues())), __LINE__);
        }
        $this->LogoAspectRatio = $logoAspectRatio;
        return $this;
    }
    /**
     * Get LogoHorizontalAlign value
     * @return string|null
     */
    public function getLogoHorizontalAlign()
    {
        return $this->LogoHorizontalAlign;
    }
    /**
     * Set LogoHorizontalAlign value
     * @uses \Diglin\Swisspost\EnumType\LogoHorizontalAlign::valueIsValid()
     * @uses \Diglin\Swisspost\EnumType\LogoHorizontalAlign::getValidValues()
     * @throws \InvalidArgumentException
     * @param string $logoHorizontalAlign
     * @return \Diglin\Swisspost\StructType\GenerateLabelCustomer
     */
    public function setLogoHorizontalAlign($logoHorizontalAlign = null)
    {
        // validation for constraint: enumeration
        if (!\Diglin\Swisspost\EnumType\LogoHorizontalAlign::valueIsValid($logoHorizontalAlign)) {
            throw new \InvalidArgumentException(sprintf('Value "%s" is invalid, please use one of: %s', $logoHorizontalAlign, implode(', ', \Diglin\Swisspost\EnumType\LogoHorizontalAlign::getValidValues())), __LINE__);
        }
        $this->LogoHorizontalAlign = $logoHorizontalAlign;
        return $this;
    }
    /**
     * Get LogoVerticalAlign value
     * @return string|null
     */
    public function getLogoVerticalAlign()
    {
        return $this->LogoVerticalAlign;
    }
    /**
     * Set LogoVerticalAlign value
     * @uses \Diglin\Swisspost\EnumType\LogoVerticalAlign::valueIsValid()
     * @uses \Diglin\Swisspost\EnumType\LogoVerticalAlign::getValidValues()
     * @throws \InvalidArgumentException
     * @param string $logoVerticalAlign
     * @return \Diglin\Swisspost\StructType\GenerateLabelCustomer
     */
    public function setLogoVerticalAlign($logoVerticalAlign = null)
    {
        // validation for constraint: enumeration
        if (!\Diglin\Swisspost\EnumType\LogoVerticalAlign::valueIsValid($logoVerticalAlign)) {
            throw new \InvalidArgumentException(sprintf('Value "%s" is invalid, please use one of: %s', $logoVerticalAlign, implode(', ', \Diglin\Swisspost\EnumType\LogoVerticalAlign::getValidValues())), __LINE__);
        }
        $this->LogoVerticalAlign = $logoVerticalAlign;
        return $this;
    }
    /**
     * Get DomicilePostOffice value
     * @return string|null
     */
    public function getDomicilePostOffice()
    {
        return $this->DomicilePostOffice;
    }
    /**
     * Set DomicilePostOffice value
     * @param string $domicilePostOffice
     * @return \Diglin\Swisspost\StructType\GenerateLabelCustomer
     */
    public function setDomicilePostOffice($domicilePostOffice = null)
    {
        // validation for constraint: maxLength
        if ((is_scalar($domicilePostOffice) && strlen($domicilePostOffice) > 35) || (is_array($domicilePostOffice) && count($domicilePostOffice) > 35)) {
            throw new \InvalidArgumentException(sprintf('Invalid length, please provide an array with 35 element(s) or a scalar of 35 character(s) at most, "%d" length given', is_scalar($domicilePostOffice) ? strlen($domicilePostOffice) : count($domicilePostOffice)), __LINE__);
        }
        // validation for constraint: pattern
        if (is_scalar($domicilePostOffice) && !preg_match('/([^\\*|\\\\|\\{|\\}|\\[|\\]|=|>|<])*/', $domicilePostOffice)) {
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a scalar value that matches "([^\*|\\|\{|\}|\[|\]|=|>|<])*", "%s" given', var_export($domicilePostOffice, true)), __LINE__);
        }
        // validation for constraint: string
        if (!is_null($domicilePostOffice) && !is_string($domicilePostOffice)) {
            throw new \InvalidArgumentException(sprintf('Invalid value, please provide a string, "%s" given', gettype($domicilePostOffice)), __LINE__);
        }
        $this->DomicilePostOffice = $domicilePostOffice;
        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 \Diglin\Swisspost\StructType\GenerateLabelCustomer
     */
    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__;
    }
}