<?php

namespace NineDotMedia\viapost-php\Struct;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for GetLibraryLetterheads Struct
 * @subpackage Structs
 */
class GetLibraryLetterheads extends AbstractStructBase
{
    /**
     * The loginToken
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $loginToken;
    /**
     * The searchDocumentName
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $searchDocumentName;
    /**
     * The letterheads
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \NineDotMedia\viapost-php\Array\ArrayOfAnyType
     */
    public $letterheads;
    /**
     * The returnMessage
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $returnMessage;
    /**
     * Constructor method for GetLibraryLetterheads
     * @uses GetLibraryLetterheads::setLoginToken()
     * @uses GetLibraryLetterheads::setSearchDocumentName()
     * @uses GetLibraryLetterheads::setLetterheads()
     * @uses GetLibraryLetterheads::setReturnMessage()
     * @param string $loginToken
     * @param string $searchDocumentName
     * @param \NineDotMedia\viapost-php\Array\ArrayOfAnyType $letterheads
     * @param string $returnMessage
     */
    public function __construct($loginToken = null, $searchDocumentName = null, \NineDotMedia\viapost-php\Array\ArrayOfAnyType $letterheads = null, $returnMessage = null)
    {
        $this
            ->setLoginToken($loginToken)
            ->setSearchDocumentName($searchDocumentName)
            ->setLetterheads($letterheads)
            ->setReturnMessage($returnMessage);
    }
    /**
     * Get loginToken value
     * @return string|null
     */
    public function getLoginToken()
    {
        return $this->loginToken;
    }
    /**
     * Set loginToken value
     * @param string $loginToken
     * @return \NineDotMedia\viapost-php\Struct\GetLibraryLetterheads
     */
    public function setLoginToken($loginToken = null)
    {
        // validation for constraint: string
        if (!is_null($loginToken) && !is_string($loginToken)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($loginToken, true), gettype($loginToken)), __LINE__);
        }
        $this->loginToken = $loginToken;
        return $this;
    }
    /**
     * Get searchDocumentName value
     * @return string|null
     */
    public function getSearchDocumentName()
    {
        return $this->searchDocumentName;
    }
    /**
     * Set searchDocumentName value
     * @param string $searchDocumentName
     * @return \NineDotMedia\viapost-php\Struct\GetLibraryLetterheads
     */
    public function setSearchDocumentName($searchDocumentName = null)
    {
        // validation for constraint: string
        if (!is_null($searchDocumentName) && !is_string($searchDocumentName)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($searchDocumentName, true), gettype($searchDocumentName)), __LINE__);
        }
        $this->searchDocumentName = $searchDocumentName;
        return $this;
    }
    /**
     * Get letterheads value
     * @return \NineDotMedia\viapost-php\Array\ArrayOfAnyType|null
     */
    public function getLetterheads()
    {
        return $this->letterheads;
    }
    /**
     * Set letterheads value
     * @param \NineDotMedia\viapost-php\Array\ArrayOfAnyType $letterheads
     * @return \NineDotMedia\viapost-php\Struct\GetLibraryLetterheads
     */
    public function setLetterheads(\NineDotMedia\viapost-php\Array\ArrayOfAnyType $letterheads = null)
    {
        $this->letterheads = $letterheads;
        return $this;
    }
    /**
     * Get returnMessage value
     * @return string|null
     */
    public function getReturnMessage()
    {
        return $this->returnMessage;
    }
    /**
     * Set returnMessage value
     * @param string $returnMessage
     * @return \NineDotMedia\viapost-php\Struct\GetLibraryLetterheads
     */
    public function setReturnMessage($returnMessage = null)
    {
        // validation for constraint: string
        if (!is_null($returnMessage) && !is_string($returnMessage)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($returnMessage, true), gettype($returnMessage)), __LINE__);
        }
        $this->returnMessage = $returnMessage;
        return $this;
    }
}
