<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for Put_Veteran_Status_ResponseType StructType
 * Meta information extracted from the WSDL
 * - documentation: Wrapper element for Put Veteran Status response.
 * @subpackage Structs
 */
class Put_Veteran_Status_ResponseType extends AbstractStructBase
{
    /**
     * The Veteran_Status_Reference
     * Meta information extracted from the WSDL
     * - documentation: Reference to a Veteran Status.
     * - minOccurs: 0
     * @var \StructType\Veteran_StatusObjectType
     */
    public $Veteran_Status_Reference;
    /**
     * The version
     * Meta information extracted from the WSDL
     * - ref: wd:version
     * @var string
     */
    public $version;
    /**
     * Constructor method for Put_Veteran_Status_ResponseType
     * @uses Put_Veteran_Status_ResponseType::setVeteran_Status_Reference()
     * @uses Put_Veteran_Status_ResponseType::setVersion()
     * @param \StructType\Veteran_StatusObjectType $veteran_Status_Reference
     * @param string $version
     */
    public function __construct(\StructType\Veteran_StatusObjectType $veteran_Status_Reference = null, $version = null)
    {
        $this
            ->setVeteran_Status_Reference($veteran_Status_Reference)
            ->setVersion($version);
    }
    /**
     * Get Veteran_Status_Reference value
     * @return \StructType\Veteran_StatusObjectType|null
     */
    public function getVeteran_Status_Reference()
    {
        return $this->Veteran_Status_Reference;
    }
    /**
     * Set Veteran_Status_Reference value
     * @param \StructType\Veteran_StatusObjectType $veteran_Status_Reference
     * @return \StructType\Put_Veteran_Status_ResponseType
     */
    public function setVeteran_Status_Reference(\StructType\Veteran_StatusObjectType $veteran_Status_Reference = null)
    {
        $this->Veteran_Status_Reference = $veteran_Status_Reference;
        return $this;
    }
    /**
     * Get version value
     * @return string|null
     */
    public function getVersion()
    {
        return $this->version;
    }
    /**
     * Set version value
     * @param string $version
     * @return \StructType\Put_Veteran_Status_ResponseType
     */
    public function setVersion($version = null)
    {
        // validation for constraint: string
        if (!is_null($version) && !is_string($version)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($version, true), gettype($version)), __LINE__);
        }
        $this->version = $version;
        return $this;
    }
}
