<?php

namespace GlsApi\Struct;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for adeServices_GetGuaranteed Struct
 * Meta information extracted from the WSDL
 * - type: tns:adeServices_GetGuaranteed
 * @subpackage Structs
 */
class AdeServices_GetGuaranteed extends AbstractStructBase
{
    /**
     * The session
     * @var string
     */
    public $session;
    /**
     * The zipcode
     * @var string
     */
    public $zipcode;
    /**
     * Constructor method for adeServices_GetGuaranteed
     * @uses AdeServices_GetGuaranteed::setSession()
     * @uses AdeServices_GetGuaranteed::setZipcode()
     * @param string $session
     * @param string $zipcode
     */
    public function __construct($session = null, $zipcode = null)
    {
        $this
            ->setSession($session)
            ->setZipcode($zipcode);
    }
    /**
     * Get session value
     * @return string|null
     */
    public function getSession()
    {
        return $this->session;
    }
    /**
     * Set session value
     * @param string $session
     * @return \GlsApi\Struct\AdeServices_GetGuaranteed
     */
    public function setSession($session = null)
    {
        // validation for constraint: string
        if (!is_null($session) && !is_string($session)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($session, true), gettype($session)), __LINE__);
        }
        $this->session = $session;
        return $this;
    }
    /**
     * Get zipcode value
     * @return string|null
     */
    public function getZipcode()
    {
        return $this->zipcode;
    }
    /**
     * Set zipcode value
     * @param string $zipcode
     * @return \GlsApi\Struct\AdeServices_GetGuaranteed
     */
    public function setZipcode($zipcode = null)
    {
        // validation for constraint: string
        if (!is_null($zipcode) && !is_string($zipcode)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($zipcode, true), gettype($zipcode)), __LINE__);
        }
        $this->zipcode = $zipcode;
        return $this;
    }
}
