<?php

namespace GlsApi\Struct;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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