<?php

namespace GLS;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for adeServices_GetMaxParcelWeights Struct
 * Meta information extracted from the WSDL
 * - type: tns:adeServices_GetMaxParcelWeights
 * @subpackage Structs
 */
class AdeServices_GetMaxParcelWeights extends AbstractStructBase
{
    /**
     * The session
     * @var string
     */
    public $session;
    /**
     * Constructor method for adeServices_GetMaxParcelWeights
     * @uses AdeServices_GetMaxParcelWeights::setSession()
     * @param string $session
     */
    public function __construct($session = null)
    {
        $this
            ->setSession($session);
    }
    /**
     * Get session value
     * @return string|null
     */
    public function getSession()
    {
        return $this->session;
    }
    /**
     * Set session value
     * @param string $session
     * @return \GLS\AdeServices_GetMaxParcelWeights
     */
    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;
    }
}
