<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for Submit_Mass_Reopen_Procurement_Documents_ResponseType
 * StructType
 * Meta information extracted from the WSDL
 * - documentation: Submit Mass Reopen Procurement Documents Response
 * @subpackage Structs
 */
class Submit_Mass_Reopen_Procurement_Documents_ResponseType extends AbstractStructBase
{
    /**
     * The Reopen_Procurement_Documents_Event_Reference
     * Meta information extracted from the WSDL
     * - documentation: Reopen Procurement Documents Event Reference
     * - minOccurs: 0
     * @var \StructType\Reopen_Procurement_Documents_EventObjectType
     */
    public $Reopen_Procurement_Documents_Event_Reference;
    /**
     * The version
     * Meta information extracted from the WSDL
     * - ref: wd:version
     * @var string
     */
    public $version;
    /**
     * Constructor method for Submit_Mass_Reopen_Procurement_Documents_ResponseType
     * @uses Submit_Mass_Reopen_Procurement_Documents_ResponseType::setReopen_Procurement_Documents_Event_Reference()
     * @uses Submit_Mass_Reopen_Procurement_Documents_ResponseType::setVersion()
     * @param \StructType\Reopen_Procurement_Documents_EventObjectType $reopen_Procurement_Documents_Event_Reference
     * @param string $version
     */
    public function __construct(\StructType\Reopen_Procurement_Documents_EventObjectType $reopen_Procurement_Documents_Event_Reference = null, $version = null)
    {
        $this
            ->setReopen_Procurement_Documents_Event_Reference($reopen_Procurement_Documents_Event_Reference)
            ->setVersion($version);
    }
    /**
     * Get Reopen_Procurement_Documents_Event_Reference value
     * @return \StructType\Reopen_Procurement_Documents_EventObjectType|null
     */
    public function getReopen_Procurement_Documents_Event_Reference()
    {
        return $this->Reopen_Procurement_Documents_Event_Reference;
    }
    /**
     * Set Reopen_Procurement_Documents_Event_Reference value
     * @param \StructType\Reopen_Procurement_Documents_EventObjectType $reopen_Procurement_Documents_Event_Reference
     * @return \StructType\Submit_Mass_Reopen_Procurement_Documents_ResponseType
     */
    public function setReopen_Procurement_Documents_Event_Reference(\StructType\Reopen_Procurement_Documents_EventObjectType $reopen_Procurement_Documents_Event_Reference = null)
    {
        $this->Reopen_Procurement_Documents_Event_Reference = $reopen_Procurement_Documents_Event_Reference;
        return $this;
    }
    /**
     * Get version value
     * @return string|null
     */
    public function getVersion()
    {
        return $this->version;
    }
    /**
     * Set version value
     * @param string $version
     * @return \StructType\Submit_Mass_Reopen_Procurement_Documents_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;
    }
}
