<?php

namespace GLS;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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