<?php

namespace \NineDotMedia\viapost-php;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for GetLetters StructType
 * @subpackage Structs
 */
class GetLetters extends AbstractStructBase
{
    /**
     * The sLoginToken
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $sLoginToken;
    /**
     * The sSearchDocumentName
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $sSearchDocumentName;
    /**
     * The sReturnMessage
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $sReturnMessage;
    /**
     * The returnLetters
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \\NineDotMedia\viapost-php\ArrayOfAnyType
     */
    public $returnLetters;
    /**
     * Constructor method for GetLetters
     * @uses GetLetters::setSLoginToken()
     * @uses GetLetters::setSSearchDocumentName()
     * @uses GetLetters::setSReturnMessage()
     * @uses GetLetters::setReturnLetters()
     * @param string $sLoginToken
     * @param string $sSearchDocumentName
     * @param string $sReturnMessage
     * @param \\NineDotMedia\viapost-php\ArrayOfAnyType $returnLetters
     */
    public function __construct($sLoginToken = null, $sSearchDocumentName = null, $sReturnMessage = null, \\NineDotMedia\viapost-php\ArrayOfAnyType $returnLetters = null)
    {
        $this
            ->setSLoginToken($sLoginToken)
            ->setSSearchDocumentName($sSearchDocumentName)
            ->setSReturnMessage($sReturnMessage)
            ->setReturnLetters($returnLetters);
    }
    /**
     * Get sLoginToken value
     * @return string|null
     */
    public function getSLoginToken()
    {
        return $this->sLoginToken;
    }
    /**
     * Set sLoginToken value
     * @param string $sLoginToken
     * @return \\NineDotMedia\viapost-php\GetLetters
     */
    public function setSLoginToken($sLoginToken = null)
    {
        // validation for constraint: string
        if (!is_null($sLoginToken) && !is_string($sLoginToken)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($sLoginToken, true), gettype($sLoginToken)), __LINE__);
        }
        $this->sLoginToken = $sLoginToken;
        return $this;
    }
    /**
     * Get sSearchDocumentName value
     * @return string|null
     */
    public function getSSearchDocumentName()
    {
        return $this->sSearchDocumentName;
    }
    /**
     * Set sSearchDocumentName value
     * @param string $sSearchDocumentName
     * @return \\NineDotMedia\viapost-php\GetLetters
     */
    public function setSSearchDocumentName($sSearchDocumentName = null)
    {
        // validation for constraint: string
        if (!is_null($sSearchDocumentName) && !is_string($sSearchDocumentName)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($sSearchDocumentName, true), gettype($sSearchDocumentName)), __LINE__);
        }
        $this->sSearchDocumentName = $sSearchDocumentName;
        return $this;
    }
    /**
     * Get sReturnMessage value
     * @return string|null
     */
    public function getSReturnMessage()
    {
        return $this->sReturnMessage;
    }
    /**
     * Set sReturnMessage value
     * @param string $sReturnMessage
     * @return \\NineDotMedia\viapost-php\GetLetters
     */
    public function setSReturnMessage($sReturnMessage = null)
    {
        // validation for constraint: string
        if (!is_null($sReturnMessage) && !is_string($sReturnMessage)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($sReturnMessage, true), gettype($sReturnMessage)), __LINE__);
        }
        $this->sReturnMessage = $sReturnMessage;
        return $this;
    }
    /**
     * Get returnLetters value
     * @return \\NineDotMedia\viapost-php\ArrayOfAnyType|null
     */
    public function getReturnLetters()
    {
        return $this->returnLetters;
    }
    /**
     * Set returnLetters value
     * @param \\NineDotMedia\viapost-php\ArrayOfAnyType $returnLetters
     * @return \\NineDotMedia\viapost-php\GetLetters
     */
    public function setReturnLetters(\\NineDotMedia\viapost-php\ArrayOfAnyType $returnLetters = null)
    {
        $this->returnLetters = $returnLetters;
        return $this;
    }
}
