<?php

namespace GLS;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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